[cmake-commits] king committed CMakeLists.txt 1.58 1.59
cmake-commits at cmake.org
cmake-commits at cmake.org
Thu Feb 1 12:02:26 EST 2007
Update of /cvsroot/CMake/CMake/Tests/Complex/Executable
In directory public:/mounts/ram/cvs-serv2800
Modified Files:
CMakeLists.txt
Log Message:
ENH: Added smoke test for user-value flag mapping for VS IDE.
Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/Complex/Executable/CMakeLists.txt,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -d -r1.58 -r1.59
--- CMakeLists.txt 19 Oct 2006 18:45:41 -0000 1.58
+++ CMakeLists.txt 1 Feb 2007 17:02:24 -0000 1.59
@@ -105,6 +105,12 @@
ADD_EXECUTABLE(notInAllExe EXCLUDE_FROM_ALL notInAllExe.cxx)
TARGET_LINK_LIBRARIES(notInAllExe notInAllLib)
+# Test user-value flag mapping for the VS IDE.
+IF(MSVC)
+ SET_TARGET_PROPERTIES(notInAllExe PROPERTIES
+ LINK_FLAGS "/NODEFAULTLIB:LIBC;LIBCMT;MSVCRT")
+ENDIF(MSVC)
+
# Test creating a custom target that builds not-in-all targets.
ADD_CUSTOM_TARGET(notInAllCustom)
ADD_DEPENDENCIES(notInAllCustom notInAllExe)
More information about the Cmake-commits
mailing list