diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2018-04-30 16:56:25 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2018-06-06 15:22:41 (GMT) |
commit | 66ea1a3795f76ce921bc48f82ff228bcceed4524 (patch) | |
tree | 48d060e55c547dc5d06fcccba7186bb5beb4fc13 /Tests/RunCMake/target_link_options/RunCMakeTest.cmake | |
parent | c1f5a44b28047cde74e2fb10e8d68e314272f699 (diff) | |
download | CMake-66ea1a3795f76ce921bc48f82ff228bcceed4524.zip CMake-66ea1a3795f76ce921bc48f82ff228bcceed4524.tar.gz CMake-66ea1a3795f76ce921bc48f82ff228bcceed4524.tar.bz2 |
LINK_OPTIONS: Add support of "LINKER:" prefix
Diffstat (limited to 'Tests/RunCMake/target_link_options/RunCMakeTest.cmake')
-rw-r--r-- | Tests/RunCMake/target_link_options/RunCMakeTest.cmake | 35 |
1 files changed, 6 insertions, 29 deletions
diff --git a/Tests/RunCMake/target_link_options/RunCMakeTest.cmake b/Tests/RunCMake/target_link_options/RunCMakeTest.cmake index 81bad94..121a0ce 100644 --- a/Tests/RunCMake/target_link_options/RunCMakeTest.cmake +++ b/Tests/RunCMake/target_link_options/RunCMakeTest.cmake @@ -29,34 +29,11 @@ if (NOT CMAKE_C_COMPILER_ID STREQUAL "Intel") unset(RunCMake_TEST_OUTPUT_MERGE) endif() +run_cmake(bad_SHELL_usage) -# include(RunCMake) +if(RunCMake_GENERATOR MATCHES "(Ninja|Makefile)") + run_cmake(LINKER_expansion) -# macro(run_cmake_build test) -# run_cmake(${test}) - -# set(RunCMake_TEST_BINARY_DIR ${RunCMake_BINARY_DIR}/${test}-build) -# set(RunCMake_TEST_NO_CLEAN 1) -# run_cmake_command(${test}-build ${CMAKE_COMMAND} --build . ${ARGN}) - -# unset(RunCMake_TEST_BINARY_DIR) -# unset(RunCMake_TEST_NO_CLEAN) -# endmacro() - -# if (NOT CMAKE_C_COMPILER_ID STREQUAL "Intel") -# # Intel compiler does not reject bad flags or objects! -# set(RunCMake_TEST_OUTPUT_MERGE TRUE) - -# run_cmake_build(LINK_OPTIONS) -# run_cmake_build(INTERFACE_LINK_OPTIONS) - -# if (NOT RunCMake_GENERATOR_IS_MULTI_CONFIG) -# set(RunCMake_TEST_OPTIONS -DCMAKE_BUILD_TYPE=Release) -# endif() -# run_cmake_build(LINK_OPTIONS_shared --config Release) -# run_cmake_build(LINK_OPTIONS_mod --config Release) -# run_cmake_build(LINK_OPTIONS_exe --config Release) -# unset(RunCMake_TEST_OPTIONS) - -# unset(RunCMake_TEST_OUTPUT_MERGE) -# endif() + run_cmake_target(LINKER_expansion LINKER linker) + run_cmake_target(LINKER_expansion LINKER_SHELL linker_shell) +endif() |