diff options
author | Brad King <brad.king@kitware.com> | 2007-02-01 17:02:24 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-02-01 17:02:24 (GMT) |
commit | a4d2dc436693b3fc72143eeafbbae98be9cadb1a (patch) | |
tree | da802112963c3b1062a06f21e6f509009bc692f6 /Tests/Complex/Executable | |
parent | 62d4c1b14a913108b9f98465c6e8645eee1f0244 (diff) | |
download | CMake-a4d2dc436693b3fc72143eeafbbae98be9cadb1a.zip CMake-a4d2dc436693b3fc72143eeafbbae98be9cadb1a.tar.gz CMake-a4d2dc436693b3fc72143eeafbbae98be9cadb1a.tar.bz2 |
ENH: Added smoke test for user-value flag mapping for VS IDE.
Diffstat (limited to 'Tests/Complex/Executable')
-rw-r--r-- | Tests/Complex/Executable/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/Complex/Executable/CMakeLists.txt b/Tests/Complex/Executable/CMakeLists.txt index f61963a..0c8a51d 100644 --- a/Tests/Complex/Executable/CMakeLists.txt +++ b/Tests/Complex/Executable/CMakeLists.txt @@ -105,6 +105,12 @@ ADD_CUSTOM_COMMAND( 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) |