summaryrefslogtreecommitdiffstats
path: root/Tests/ComplexOneConfig
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-02-01 17:02:24 (GMT)
committerBrad King <brad.king@kitware.com>2007-02-01 17:02:24 (GMT)
commita4d2dc436693b3fc72143eeafbbae98be9cadb1a (patch)
treeda802112963c3b1062a06f21e6f509009bc692f6 /Tests/ComplexOneConfig
parent62d4c1b14a913108b9f98465c6e8645eee1f0244 (diff)
downloadCMake-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/ComplexOneConfig')
-rw-r--r--Tests/ComplexOneConfig/Executable/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
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)