summaryrefslogtreecommitdiffstats
path: root/Tests/LinkFlags
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-02-03 21:05:28 (GMT)
committerBrad King <brad.king@kitware.com>2023-02-03 21:05:28 (GMT)
commit7e3229d7f9d759713e07d7594ffe971588d8e592 (patch)
treeb363c93e247f014eb824492c785ed933a3a6293e /Tests/LinkFlags
parent77610c6cf0fd18586eaaf4b328936f79683afd34 (diff)
downloadCMake-7e3229d7f9d759713e07d7594ffe971588d8e592.zip
CMake-7e3229d7f9d759713e07d7594ffe971588d8e592.tar.gz
CMake-7e3229d7f9d759713e07d7594ffe971588d8e592.tar.bz2
Tests: Move LINK_FLAGS case from COnly to LinkFlags test
Move the case added by commit 246e964180 (BUG: fix for bug 5455, handle nodefaultlib with more than one lib, 2007-12-06, v2.6.0~751) to a more sensible test.
Diffstat (limited to 'Tests/LinkFlags')
-rw-r--r--Tests/LinkFlags/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/LinkFlags/CMakeLists.txt b/Tests/LinkFlags/CMakeLists.txt
index 31ff9b5..de853cf 100644
--- a/Tests/LinkFlags/CMakeLists.txt
+++ b/Tests/LinkFlags/CMakeLists.txt
@@ -32,6 +32,11 @@ add_executable(LinkFlags_exe_config LinkFlagsExe.c)
set_property(TARGET LinkFlags_exe_config PROPERTY LINK_FLAGS_${TEST_CONFIG_UPPER} ${pre}BADFLAG_${TEST_CONFIG}${obj})
add_executable(LinkFlags LinkFlags.c)
+if("x${CMAKE_C_COMPILER_ID}" STREQUAL "xMSVC")
+ set_property(TARGET LinkFlags PROPERTY
+ LINK_FLAGS "/NODEFAULTLIB:\"libcdg.lib\" /NODEFAULTLIB:\"libcmtg.lib\" /NODEFAULTLIB:\"foomsvcrt.lib\" /NODEFAULTLIB:\"libbar.lib\" /NODEFAULTLIB:\"libfooba.lib\""
+ )
+endif()
add_subdirectory(LinkerFlags)
add_subdirectory(LinkerFlagsConfig)