From: <arj...@us...> - 2009-01-02 12:22:22
|
Revision: 9243 http://plplot.svn.sourceforge.net/plplot/?rev=9243&view=rev Author: arjenmarkus Date: 2009-01-02 11:39:23 +0000 (Fri, 02 Jan 2009) Log Message: ----------- If Tcl was enabled, but Tk not, then building the DLLs on Windows failed. Added the flag -DUSINGDLL whenever shared libraries are to be built. Modified Paths: -------------- trunk/bindings/tcl/CMakeLists.txt Modified: trunk/bindings/tcl/CMakeLists.txt =================================================================== --- trunk/bindings/tcl/CMakeLists.txt 2009-01-02 10:54:32 UTC (rev 9242) +++ trunk/bindings/tcl/CMakeLists.txt 2009-01-02 11:39:23 UTC (rev 9243) @@ -109,6 +109,11 @@ tclAPI.c tclMain.c ) +if(BUILD_SHARED_LIBS) + set_source_files_properties(${plplottcltk${LIB_TAG}_LIB_SRCS} + PROPERTIES COMPILE_FLAGS "-DUSINGDLL" + ) +endif(BUILD_SHARED_LIBS) set( plplottcltk${LIB_TAG}_link_libraries @@ -118,7 +123,7 @@ ) set( libplplottcltk${LIB_TAG}_LINK_FLAGS --ltclmatrix${LIB_TAG} +-ltclmatrix${LIB_TAG} ${TCL_LIBRARY} ) @@ -187,7 +192,7 @@ endif(ENABLE_itk) endif(ENABLE_tk) -# Transform "${libplplottcltk${LIB_TAG}_LINK_FLAGS}" string to the +# Transform "${libplplottcltk${LIB_TAG}_LINK_FLAGS}" string to the # standard pkg-config form. pkg_config_link_flags( libplplottcltk${LIB_TAG}_LINK_FLAGS @@ -196,8 +201,8 @@ add_library(plplottcltk${LIB_TAG} ${plplottcltk${LIB_TAG}_LIB_SRCS}) -#message(STATUS -#"plplottcltk${LIB_TAG}_link_libraries = +#message(STATUS +#"plplottcltk${LIB_TAG}_link_libraries = #${plplottcltk${LIB_TAG}_link_libraries}" #) target_link_libraries( This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |