[cmake-commits] hoffman committed CMakeLists.txt 1.10 1.11

cmake-commits at cmake.org cmake-commits at cmake.org
Thu Dec 6 08:40:20 EST 2007


Update of /cvsroot/CMake/CMake/Tests/COnly
In directory public:/mounts/ram/cvs-serv6817/Tests/COnly

Modified Files:
	CMakeLists.txt 
Log Message:
BUG: fix for bug 5455, handle nodefaultlib with more than one lib


Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/COnly/CMakeLists.txt,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- CMakeLists.txt	11 May 2007 14:22:20 -0000	1.10
+++ CMakeLists.txt	6 Dec 2007 13:40:18 -0000	1.11
@@ -6,6 +6,9 @@
 add_library(testc2 SHARED libc2.c)
 add_executable (COnly conly.c foo.c foo.h)
 target_link_libraries(COnly testc1 testc2)
-
+if(MSVC_VERSION)
+  set_target_properties(COnly PROPERTIES
+    LINK_FLAGS " /NODEFAULTLIB:\"libc.lib\" /NODEFAULTLIB:\"libcmt.lib\" /NODEFAULTLIB:\"msvcrt.lib\" /NODEFAULTLIB:\"libcd.lib\" /NODEFAULTLIB:\"libcmtd.lib\"")
+endif(MSVC_VERSION)
 string(ASCII 35 32 67 77 97 107 101 ASCII_STRING)
 message(STATUS "String: ${ASCII_STRING}")



More information about the Cmake-commits mailing list