Revision: 65330
          http://sourceforge.net/p/brlcad/code/65330
Author:   starseeker
Date:     2015-06-16 17:09:54 +0000 (Tue, 16 Jun 2015)
Log Message:
-----------
conditionalize

Modified Paths:
--------------
    brlcad/trunk/src/other/tcl/CMakeLists.txt

Modified: brlcad/trunk/src/other/tcl/CMakeLists.txt
===================================================================
--- brlcad/trunk/src/other/tcl/CMakeLists.txt   2015-06-16 17:09:42 UTC (rev 
65329)
+++ brlcad/trunk/src/other/tcl/CMakeLists.txt   2015-06-16 17:09:54 UTC (rev 
65330)
@@ -1035,8 +1035,12 @@
   SET(TCLSH_SRCS unix/tclAppInit.c)
 ENDIF(WIN32)
 
+IF(MINGW)
+  set(TCL_MINGW_LIBS ws2_32)
+ENDIF(MINGW)
+
 add_library(tcl ${TCL_SRCS})
-target_link_libraries(tcl ${CoreFoundation_LIBRARIES} ${TCL_LINK_LIBS} 
${DL_LIBRARY} ${CMAKE_THREAD_LIBS_INIT} ws2_32)
+target_link_libraries(tcl ${CoreFoundation_LIBRARIES} ${TCL_LINK_LIBS} 
${DL_LIBRARY} ${CMAKE_THREAD_LIBS_INIT} ${TCL_MINGW_LIBS})
 install(TARGETS tcl 
        RUNTIME DESTINATION ${BIN_DIR}
        LIBRARY DESTINATION ${LIB_DIR}

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to