ENH: Added smoke test for user-value flag mapping for VS IDE.

This commit is contained in:
Brad King 2007-02-01 12:02:24 -05:00
parent 62d4c1b14a
commit a4d2dc4366
3 changed files with 18 additions and 0 deletions

View File

@ -105,6 +105,12 @@ ADD_CUSTOM_COMMAND(
ADD_EXECUTABLE(notInAllExe EXCLUDE_FROM_ALL notInAllExe.cxx) ADD_EXECUTABLE(notInAllExe EXCLUDE_FROM_ALL notInAllExe.cxx)
TARGET_LINK_LIBRARIES(notInAllExe notInAllLib) 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. # Test creating a custom target that builds not-in-all targets.
ADD_CUSTOM_TARGET(notInAllCustom) ADD_CUSTOM_TARGET(notInAllCustom)
ADD_DEPENDENCIES(notInAllCustom notInAllExe) ADD_DEPENDENCIES(notInAllCustom notInAllExe)

View File

@ -105,6 +105,12 @@ ADD_CUSTOM_COMMAND(
ADD_EXECUTABLE(notInAllExe EXCLUDE_FROM_ALL notInAllExe.cxx) ADD_EXECUTABLE(notInAllExe EXCLUDE_FROM_ALL notInAllExe.cxx)
TARGET_LINK_LIBRARIES(notInAllExe notInAllLib) 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. # Test creating a custom target that builds not-in-all targets.
ADD_CUSTOM_TARGET(notInAllCustom) ADD_CUSTOM_TARGET(notInAllCustom)
ADD_DEPENDENCIES(notInAllCustom notInAllExe) ADD_DEPENDENCIES(notInAllCustom notInAllExe)

View File

@ -105,6 +105,12 @@ ADD_CUSTOM_COMMAND(
ADD_EXECUTABLE(notInAllExe EXCLUDE_FROM_ALL notInAllExe.cxx) ADD_EXECUTABLE(notInAllExe EXCLUDE_FROM_ALL notInAllExe.cxx)
TARGET_LINK_LIBRARIES(notInAllExe notInAllLib) 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. # Test creating a custom target that builds not-in-all targets.
ADD_CUSTOM_TARGET(notInAllCustom) ADD_CUSTOM_TARGET(notInAllCustom)
ADD_DEPENDENCIES(notInAllCustom notInAllExe) ADD_DEPENDENCIES(notInAllCustom notInAllExe)