diff options
author | Brad King <brad.king@kitware.com> | 2020-06-15 18:33:09 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-06-16 12:03:35 (GMT) |
commit | 64a8587332d1287757487f56f6d9bbeec095369f (patch) | |
tree | b70e73f6b234f0b2e9cc64a4069390fc4acf2210 /Tests/RunCMake/GeneratorExpression | |
parent | 6f224a065c7e0627fca2d3026fc507663b851eb4 (diff) | |
download | CMake-64a8587332d1287757487f56f6d9bbeec095369f.zip CMake-64a8587332d1287757487f56f6d9bbeec095369f.tar.gz CMake-64a8587332d1287757487f56f6d9bbeec095369f.tar.bz2 |
Tests: Factor out RunCMake.GenEx-HOST_LINK test
Move the `HOST_LINK` cases out of `RunCMake.GeneratorExpression`.
Diffstat (limited to 'Tests/RunCMake/GeneratorExpression')
40 files changed, 0 insertions, 195 deletions
diff --git a/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_custom_command-result.txt b/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_custom_command-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_custom_command-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_custom_command-stderr.txt b/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_custom_command-stderr.txt deleted file mode 100644 index 5ad41b9..0000000 --- a/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_custom_command-stderr.txt +++ /dev/null @@ -1,9 +0,0 @@ -CMake Error at HOST_LINK-add_custom_command.cmake:[0-9]+ \(add_custom_command\): - Error evaluating generator expression: - - \$<HOST_LINK> - - \$<HOST_LINK:...> may only be used with binary targets to specify link - options. -Call Stack \(most recent call first\): - CMakeLists.txt:[0-9]+ \(include\) diff --git a/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_custom_command.cmake b/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_custom_command.cmake deleted file mode 100644 index 4d6e305..0000000 --- a/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_custom_command.cmake +++ /dev/null @@ -1,4 +0,0 @@ -add_custom_target(drive) -add_custom_command(TARGET drive PRE_BUILD - COMMAND ${CMAKE_COMMAND} -E echo $<HOST_LINK> -) diff --git a/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_custom_target-result.txt b/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_custom_target-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_custom_target-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_custom_target-stderr.txt b/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_custom_target-stderr.txt deleted file mode 100644 index c44202a..0000000 --- a/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_custom_target-stderr.txt +++ /dev/null @@ -1,9 +0,0 @@ -CMake Error at HOST_LINK-add_custom_target.cmake:[0-9]+ \(add_custom_target\): - Error evaluating generator expression: - - \$<HOST_LINK> - - \$<HOST_LINK:...> may only be used with binary targets to specify link - options. -Call Stack \(most recent call first\): - CMakeLists.txt:[0-9]+ \(include\) diff --git a/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_custom_target.cmake b/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_custom_target.cmake deleted file mode 100644 index eec072a..0000000 --- a/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_custom_target.cmake +++ /dev/null @@ -1,3 +0,0 @@ -add_custom_target(drive - COMMAND ${CMAKE_COMMAND} -E echo $<HOST_LINK> -) diff --git a/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_executable-result.txt b/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_executable-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_executable-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_executable-stderr.txt b/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_executable-stderr.txt deleted file mode 100644 index b395515..0000000 --- a/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_executable-stderr.txt +++ /dev/null @@ -1,9 +0,0 @@ -CMake Error at HOST_LINK-add_executable.cmake:[0-9]+ \(add_executable\): - Error evaluating generator expression: - - \$<HOST_LINK:empty.c> - - \$<HOST_LINK:...> may only be used with binary targets to specify link - options. -Call Stack \(most recent call first\): - CMakeLists.txt:[0-9]+ \(include\) diff --git a/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_executable.cmake b/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_executable.cmake deleted file mode 100644 index c9f74a5..0000000 --- a/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_executable.cmake +++ /dev/null @@ -1 +0,0 @@ -add_executable(empty $<HOST_LINK:empty.c>) diff --git a/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_library-result.txt b/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_library-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_library-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_library-stderr.txt b/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_library-stderr.txt deleted file mode 100644 index 4bd27be..0000000 --- a/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_library-stderr.txt +++ /dev/null @@ -1,9 +0,0 @@ -CMake Error at HOST_LINK-add_library.cmake:[0-9]+ \(add_library\): - Error evaluating generator expression: - - \$<HOST_LINK:empty.c> - - \$<HOST_LINK:...> may only be used with binary targets to specify link - options. -Call Stack \(most recent call first\): - CMakeLists.txt:[0-9]+ \(include\) diff --git a/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_library.cmake b/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_library.cmake deleted file mode 100644 index 44135af..0000000 --- a/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_library.cmake +++ /dev/null @@ -1 +0,0 @@ -add_library(empty $<HOST_LINK:empty.c>) diff --git a/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_test-result.txt b/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_test-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_test-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_test-stderr.txt b/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_test-stderr.txt deleted file mode 100644 index 012ad21..0000000 --- a/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_test-stderr.txt +++ /dev/null @@ -1,9 +0,0 @@ -CMake Error at HOST_LINK-add_test.cmake:[0-9]+ \(add_test\): - Error evaluating generator expression: - - \$<HOST_LINK> - - \$<HOST_LINK:...> may only be used with binary targets to specify link - options. -Call Stack \(most recent call first\): - CMakeLists.txt:[0-9]+ \(include\) diff --git a/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_test.cmake b/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_test.cmake deleted file mode 100644 index 4b472af..0000000 --- a/Tests/RunCMake/GeneratorExpression/HOST_LINK-add_test.cmake +++ /dev/null @@ -1,5 +0,0 @@ - -include(CTest) -enable_testing() - -add_test(NAME dummy COMMAND ${CMAKE_COMMAND} -E echo $<HOST_LINK>) diff --git a/Tests/RunCMake/GeneratorExpression/HOST_LINK-install-result.txt b/Tests/RunCMake/GeneratorExpression/HOST_LINK-install-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/HOST_LINK-install-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/HOST_LINK-install-stderr.txt b/Tests/RunCMake/GeneratorExpression/HOST_LINK-install-stderr.txt deleted file mode 100644 index c265ec4..0000000 --- a/Tests/RunCMake/GeneratorExpression/HOST_LINK-install-stderr.txt +++ /dev/null @@ -1,7 +0,0 @@ -CMake Error: - Error evaluating generator expression: - - \$<HOST_LINK:empty> - - \$<HOST_LINK:...> may only be used with binary targets to specify link - options. diff --git a/Tests/RunCMake/GeneratorExpression/HOST_LINK-install.cmake b/Tests/RunCMake/GeneratorExpression/HOST_LINK-install.cmake deleted file mode 100644 index b4dff68..0000000 --- a/Tests/RunCMake/GeneratorExpression/HOST_LINK-install.cmake +++ /dev/null @@ -1,5 +0,0 @@ - -install(FILES - $<HOST_LINK:empty> - DESTINATION src -) diff --git a/Tests/RunCMake/GeneratorExpression/HOST_LINK-link_depends-result.txt b/Tests/RunCMake/GeneratorExpression/HOST_LINK-link_depends-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/HOST_LINK-link_depends-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/HOST_LINK-link_depends-stderr.txt b/Tests/RunCMake/GeneratorExpression/HOST_LINK-link_depends-stderr.txt deleted file mode 100644 index 24b8b82..0000000 --- a/Tests/RunCMake/GeneratorExpression/HOST_LINK-link_depends-stderr.txt +++ /dev/null @@ -1,7 +0,0 @@ -CMake Error: - Error evaluating generator expression: - - \$<HOST_LINK:lib> - - \$<HOST_LINK:...> may only be used with binary targets to specify link - options. diff --git a/Tests/RunCMake/GeneratorExpression/HOST_LINK-link_depends.cmake b/Tests/RunCMake/GeneratorExpression/HOST_LINK-link_depends.cmake deleted file mode 100644 index 0402f43..0000000 --- a/Tests/RunCMake/GeneratorExpression/HOST_LINK-link_depends.cmake +++ /dev/null @@ -1,7 +0,0 @@ - -enable_language(C) - -add_library(lib empty.c) - -add_executable(empty empty.c) -set_property(TARGET empty PROPERTY LINK_DEPENDS $<HOST_LINK:lib>) diff --git a/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_compile_definitions-result.txt b/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_compile_definitions-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_compile_definitions-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_compile_definitions-stderr.txt b/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_compile_definitions-stderr.txt deleted file mode 100644 index 6ab3c14..0000000 --- a/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_compile_definitions-stderr.txt +++ /dev/null @@ -1,9 +0,0 @@ -CMake Error at HOST_LINK-target_compile_definitions.cmake:[0-9]+ \(target_compile_definitions\): - Error evaluating generator expression: - - \$<HOST_LINK:DEF> - - \$<HOST_LINK:...> may only be used with binary targets to specify link - options. -Call Stack \(most recent call first\): - CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_compile_definitions.cmake b/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_compile_definitions.cmake deleted file mode 100644 index f6c130d..0000000 --- a/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_compile_definitions.cmake +++ /dev/null @@ -1,4 +0,0 @@ - -enable_language(C) -add_executable(empty empty.c) -target_compile_definitions(empty PRIVATE $<HOST_LINK:DEF>) diff --git a/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_compile_options-result.txt b/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_compile_options-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_compile_options-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_compile_options-stderr.txt b/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_compile_options-stderr.txt deleted file mode 100644 index 0f5bbc3..0000000 --- a/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_compile_options-stderr.txt +++ /dev/null @@ -1,9 +0,0 @@ -CMake Error at HOST_LINK-target_compile_options.cmake:[0-9]+ \(target_compile_options\): - Error evaluating generator expression: - - \$<HOST_LINK:-OPT> - - \$<HOST_LINK:...> may only be used with binary targets to specify link - options. -Call Stack \(most recent call first\): - CMakeLists.txt:[0-9]+ \(include\) diff --git a/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_compile_options.cmake b/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_compile_options.cmake deleted file mode 100644 index 53afea1..0000000 --- a/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_compile_options.cmake +++ /dev/null @@ -1,4 +0,0 @@ - -enable_language(C) -add_executable(empty empty.c) -target_compile_options(empty PRIVATE $<HOST_LINK:-OPT>) diff --git a/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_include_directories-result.txt b/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_include_directories-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_include_directories-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_include_directories-stderr.txt b/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_include_directories-stderr.txt deleted file mode 100644 index 9a2634a..0000000 --- a/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_include_directories-stderr.txt +++ /dev/null @@ -1,9 +0,0 @@ -CMake Error at HOST_LINK-target_include_directories.cmake:[0-9]+ \(target_include_directories\): - Error evaluating generator expression: - - \$<HOST_LINK:/DIR> - - \$<HOST_LINK:...> may only be used with binary targets to specify link - options. -Call Stack \(most recent call first\): - CMakeLists.txt:[0-9]+ \(include\) diff --git a/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_include_directories.cmake b/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_include_directories.cmake deleted file mode 100644 index aff1009..0000000 --- a/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_include_directories.cmake +++ /dev/null @@ -1,4 +0,0 @@ - -enable_language(C) -add_executable(empty empty.c) -target_include_directories(empty PRIVATE $<HOST_LINK:/DIR>) diff --git a/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_link_directories-result.txt b/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_link_directories-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_link_directories-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_link_directories-stderr.txt b/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_link_directories-stderr.txt deleted file mode 100644 index 5225a52..0000000 --- a/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_link_directories-stderr.txt +++ /dev/null @@ -1,9 +0,0 @@ -CMake Error at HOST_LINK-target_link_directories.cmake:[0-9]+ \(target_link_directories\): - Error evaluating generator expression: - - \$<HOST_LINK:/DIR> - - \$<HOST_LINK:...> may only be used with binary targets to specify link - options. -Call Stack \(most recent call first\): - CMakeLists.txt:[0-9]+ \(include\) diff --git a/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_link_directories.cmake b/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_link_directories.cmake deleted file mode 100644 index 97488ee..0000000 --- a/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_link_directories.cmake +++ /dev/null @@ -1,7 +0,0 @@ - -enable_language(C) - -add_library(lib empty.c) - -add_executable(empty empty.c) -target_link_directories(empty PRIVATE $<HOST_LINK:/DIR>) diff --git a/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_link_libraries-result.txt b/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_link_libraries-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_link_libraries-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_link_libraries-stderr.txt b/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_link_libraries-stderr.txt deleted file mode 100644 index 6c4441f..0000000 --- a/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_link_libraries-stderr.txt +++ /dev/null @@ -1,9 +0,0 @@ -CMake Error at HOST_LINK-target_link_libraries.cmake:[0-9]+ \(target_link_libraries\): - Error evaluating generator expression: - - \$<HOST_LINK:lib> - - \$<HOST_LINK:...> may only be used with binary targets to specify link - options. -Call Stack \(most recent call first\): - CMakeLists.txt:[0-9]+ \(include\) diff --git a/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_link_libraries.cmake b/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_link_libraries.cmake deleted file mode 100644 index d74c92d..0000000 --- a/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_link_libraries.cmake +++ /dev/null @@ -1,7 +0,0 @@ - -enable_language(C) - -add_library(lib empty.c) - -add_executable(empty empty.c) -target_link_libraries(empty PRIVATE $<HOST_LINK:lib>) diff --git a/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_sources-result.txt b/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_sources-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_sources-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_sources-stderr.txt b/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_sources-stderr.txt deleted file mode 100644 index 0e25568..0000000 --- a/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_sources-stderr.txt +++ /dev/null @@ -1,9 +0,0 @@ -CMake Error at HOST_LINK-target_sources.cmake:[0-9]+ \(target_sources\): - Error evaluating generator expression: - - \$<HOST_LINK:empty.c> - - \$<HOST_LINK:...> may only be used with binary targets to specify link - options. -Call Stack \(most recent call first\): - CMakeLists.txt:[0-9]+ \(include\) diff --git a/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_sources.cmake b/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_sources.cmake deleted file mode 100644 index ea7bf55..0000000 --- a/Tests/RunCMake/GeneratorExpression/HOST_LINK-target_sources.cmake +++ /dev/null @@ -1,2 +0,0 @@ -add_library(empty) -target_sources(empty PRIVATE $<HOST_LINK:empty.c>) diff --git a/Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake b/Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake index 54fb5cb..dfe6695 100644 --- a/Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake +++ b/Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake @@ -23,21 +23,6 @@ run_cmake(NonValidTarget-TARGET_BUNDLE_DIR) run_cmake(NonValidTarget-TARGET_BUNDLE_CONTENT_DIR) run_cmake(NonValidTarget-TARGET_PROPERTY) run_cmake(NonValidTarget-TARGET_POLICY) -run_cmake(HOST_LINK-add_custom_target) -run_cmake(HOST_LINK-add_custom_command) -run_cmake(HOST_LINK-install) -run_cmake(HOST_LINK-add_executable) -run_cmake(HOST_LINK-add_library) -run_cmake(HOST_LINK-add_test) -run_cmake(HOST_LINK-target_sources) -run_cmake(HOST_LINK-target_compile_definitions) -run_cmake(HOST_LINK-target_compile_options) -run_cmake(HOST_LINK-target_include_directories) -run_cmake(HOST_LINK-target_link_libraries) -run_cmake(HOST_LINK-target_link_directories) -if(RunCMake_GENERATOR MATCHES "(Ninja|Makefile)") - run_cmake(HOST_LINK-link_depends) -endif() run_cmake(DEVICE_LINK-add_custom_target) run_cmake(DEVICE_LINK-add_custom_command) run_cmake(DEVICE_LINK-install) |