You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
655 B
22 lines
655 B
2 years ago
|
include(RunCMake)
|
||
|
|
||
|
cmake_policy(SET CMP0057 NEW)
|
||
|
|
||
|
function(run_cmake_with_config test)
|
||
|
if (NOT RunCMake_GENERATOR_IS_MULTI_CONFIG)
|
||
|
set(RunCMake_TEST_OPTIONS -DCMAKE_BUILD_TYPE=Release)
|
||
|
endif()
|
||
|
run_cmake(${test})
|
||
|
endfunction()
|
||
|
|
||
|
run_cmake(TARGET_LINKER_IMPORT_FILE-non-valid-target)
|
||
|
run_cmake(TARGET_LINKER_LIBRARY_FILE-non-valid-target)
|
||
|
run_cmake_with_config(TARGET_IMPORT_FILE)
|
||
|
run_cmake_with_config(TARGET_IMPORT_FILE_SUFFIX)
|
||
|
|
||
|
set (Windows_platforms Windows CYGWIN MSYS)
|
||
|
if (NOT CMAKE_HOST_SYSTEM_NAME IN_LIST Windows_platforms)
|
||
|
run_cmake(TARGET_SONAME_IMPORT_FILE-non-valid-target)
|
||
|
run_cmake_with_config(TARGET_SONAME_IMPORT_FILE)
|
||
|
endif()
|