mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-29 02:19:18 -05:00
Merge topic 'test-cleanup-COnly'
f7a165ddcbTests: Drop redundant string(ASCII) case from COnly test7e3229d7f9Tests: Move LINK_FLAGS case from COnly to LinkFlags test Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8161
This commit is contained in:
@@ -7,11 +7,5 @@ add_library(testc1 STATIC libc1.c)
|
||||
add_library(testc2 SHARED libc2.c)
|
||||
add_executable (COnly conly.c foo.c foo.h)
|
||||
target_link_libraries(COnly testc1 testc2)
|
||||
if(MSVC_VERSION AND NOT CMAKE_C_COMPILER_ID STREQUAL Clang OR "x${CMAKE_C_COMPILER_FRONTEND_VARIANT}" STREQUAL "xMSVC")
|
||||
set_target_properties(COnly PROPERTIES
|
||||
LINK_FLAGS " /NODEFAULTLIB:\"libcdg.lib\" /NODEFAULTLIB:\"libcmtg.lib\" /NODEFAULTLIB:\"foomsvcrt.lib\" /NODEFAULTLIB:\"libbar.lib\" /NODEFAULTLIB:\"libfooba.lib\"")
|
||||
endif()
|
||||
string(ASCII 35 32 67 77 97 107 101 ASCII_STRING)
|
||||
message(STATUS "String: ${ASCII_STRING}")
|
||||
|
||||
add_library(testCModule MODULE testCModule.c)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user