From a4d2dc436693b3fc72143eeafbbae98be9cadb1a Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 1 Feb 2007 12:02:24 -0500 Subject: ENH: Added smoke test for user-value flag mapping for VS IDE. --- Tests/Complex/Executable/CMakeLists.txt | 6 ++++++ Tests/ComplexOneConfig/Executable/CMakeLists.txt | 6 ++++++ Tests/ComplexRelativePaths/Executable/CMakeLists.txt | 6 ++++++ 3 files changed, 18 insertions(+) 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) diff --git a/Tests/ComplexOneConfig/Executable/CMakeLists.txt b/Tests/ComplexOneConfig/Executable/CMakeLists.txt index f61963a..0c8a51d 100644 --- a/Tests/ComplexOneConfig/Executable/CMakeLists.txt +++ b/Tests/ComplexOneConfig/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) diff --git a/Tests/ComplexRelativePaths/Executable/CMakeLists.txt b/Tests/ComplexRelativePaths/Executable/CMakeLists.txt index f61963a..0c8a51d 100644 --- a/Tests/ComplexRelativePaths/Executable/CMakeLists.txt +++ b/Tests/ComplexRelativePaths/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) -- cgit v0.12