summaryrefslogtreecommitdiff
path: root/Tests/Complex
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-02-01 12:02:24 -0500
committerBrad King <brad.king@kitware.com>2007-02-01 12:02:24 -0500
commita4d2dc436693b3fc72143eeafbbae98be9cadb1a (patch)
treeda802112963c3b1062a06f21e6f509009bc692f6 /Tests/Complex
parent62d4c1b14a913108b9f98465c6e8645eee1f0244 (diff)
downloadcmake-a4d2dc436693b3fc72143eeafbbae98be9cadb1a.tar.gz
ENH: Added smoke test for user-value flag mapping for VS IDE.
Diffstat (limited to 'Tests/Complex')
-rw-r--r--Tests/Complex/Executable/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/Complex/Executable/CMakeLists.txt b/Tests/Complex/Executable/CMakeLists.txt
index f61963a2ff..0c8a51de7f 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)