From 64a8587332d1287757487f56f6d9bbeec095369f Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 15 Jun 2020 14:33:09 -0400 Subject: Tests: Factor out RunCMake.GenEx-HOST_LINK test Move the `HOST_LINK` cases out of `RunCMake.GeneratorExpression`. --- Tests/RunCMake/CMakeLists.txt | 1 + Tests/RunCMake/GenEx-HOST_LINK/CMakeLists.txt | 3 +++ .../HOST_LINK-add_custom_command-result.txt | 1 + .../HOST_LINK-add_custom_command-stderr.txt | 9 +++++++++ .../GenEx-HOST_LINK/HOST_LINK-add_custom_command.cmake | 4 ++++ .../HOST_LINK-add_custom_target-result.txt | 1 + .../HOST_LINK-add_custom_target-stderr.txt | 9 +++++++++ .../GenEx-HOST_LINK/HOST_LINK-add_custom_target.cmake | 3 +++ .../GenEx-HOST_LINK/HOST_LINK-add_executable-result.txt | 1 + .../GenEx-HOST_LINK/HOST_LINK-add_executable-stderr.txt | 9 +++++++++ .../GenEx-HOST_LINK/HOST_LINK-add_executable.cmake | 1 + .../GenEx-HOST_LINK/HOST_LINK-add_library-result.txt | 1 + .../GenEx-HOST_LINK/HOST_LINK-add_library-stderr.txt | 9 +++++++++ .../GenEx-HOST_LINK/HOST_LINK-add_library.cmake | 1 + .../GenEx-HOST_LINK/HOST_LINK-add_test-result.txt | 1 + .../GenEx-HOST_LINK/HOST_LINK-add_test-stderr.txt | 9 +++++++++ Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_test.cmake | 5 +++++ .../GenEx-HOST_LINK/HOST_LINK-install-result.txt | 1 + .../GenEx-HOST_LINK/HOST_LINK-install-stderr.txt | 7 +++++++ Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-install.cmake | 5 +++++ .../GenEx-HOST_LINK/HOST_LINK-link_depends-result.txt | 1 + .../GenEx-HOST_LINK/HOST_LINK-link_depends-stderr.txt | 7 +++++++ .../GenEx-HOST_LINK/HOST_LINK-link_depends.cmake | 7 +++++++ .../HOST_LINK-target_compile_definitions-result.txt | 1 + .../HOST_LINK-target_compile_definitions-stderr.txt | 9 +++++++++ .../HOST_LINK-target_compile_definitions.cmake | 4 ++++ .../HOST_LINK-target_compile_options-result.txt | 1 + .../HOST_LINK-target_compile_options-stderr.txt | 9 +++++++++ .../HOST_LINK-target_compile_options.cmake | 4 ++++ .../HOST_LINK-target_include_directories-result.txt | 1 + .../HOST_LINK-target_include_directories-stderr.txt | 9 +++++++++ .../HOST_LINK-target_include_directories.cmake | 4 ++++ .../HOST_LINK-target_link_directories-result.txt | 1 + .../HOST_LINK-target_link_directories-stderr.txt | 9 +++++++++ .../HOST_LINK-target_link_directories.cmake | 7 +++++++ .../HOST_LINK-target_link_libraries-result.txt | 1 + .../HOST_LINK-target_link_libraries-stderr.txt | 9 +++++++++ .../HOST_LINK-target_link_libraries.cmake | 7 +++++++ .../GenEx-HOST_LINK/HOST_LINK-target_sources-result.txt | 1 + .../GenEx-HOST_LINK/HOST_LINK-target_sources-stderr.txt | 9 +++++++++ .../GenEx-HOST_LINK/HOST_LINK-target_sources.cmake | 2 ++ Tests/RunCMake/GenEx-HOST_LINK/RunCMakeTest.cmake | 17 +++++++++++++++++ Tests/RunCMake/GenEx-HOST_LINK/empty.c | 0 .../HOST_LINK-add_custom_command-result.txt | 1 - .../HOST_LINK-add_custom_command-stderr.txt | 9 --------- .../HOST_LINK-add_custom_command.cmake | 4 ---- .../HOST_LINK-add_custom_target-result.txt | 1 - .../HOST_LINK-add_custom_target-stderr.txt | 9 --------- .../HOST_LINK-add_custom_target.cmake | 3 --- .../HOST_LINK-add_executable-result.txt | 1 - .../HOST_LINK-add_executable-stderr.txt | 9 --------- .../GeneratorExpression/HOST_LINK-add_executable.cmake | 1 - .../HOST_LINK-add_library-result.txt | 1 - .../HOST_LINK-add_library-stderr.txt | 9 --------- .../GeneratorExpression/HOST_LINK-add_library.cmake | 1 - .../GeneratorExpression/HOST_LINK-add_test-result.txt | 1 - .../GeneratorExpression/HOST_LINK-add_test-stderr.txt | 9 --------- .../GeneratorExpression/HOST_LINK-add_test.cmake | 5 ----- .../GeneratorExpression/HOST_LINK-install-result.txt | 1 - .../GeneratorExpression/HOST_LINK-install-stderr.txt | 7 ------- .../GeneratorExpression/HOST_LINK-install.cmake | 5 ----- .../HOST_LINK-link_depends-result.txt | 1 - .../HOST_LINK-link_depends-stderr.txt | 7 ------- .../GeneratorExpression/HOST_LINK-link_depends.cmake | 7 ------- .../HOST_LINK-target_compile_definitions-result.txt | 1 - .../HOST_LINK-target_compile_definitions-stderr.txt | 9 --------- .../HOST_LINK-target_compile_definitions.cmake | 4 ---- .../HOST_LINK-target_compile_options-result.txt | 1 - .../HOST_LINK-target_compile_options-stderr.txt | 9 --------- .../HOST_LINK-target_compile_options.cmake | 4 ---- .../HOST_LINK-target_include_directories-result.txt | 1 - .../HOST_LINK-target_include_directories-stderr.txt | 9 --------- .../HOST_LINK-target_include_directories.cmake | 4 ---- .../HOST_LINK-target_link_directories-result.txt | 1 - .../HOST_LINK-target_link_directories-stderr.txt | 9 --------- .../HOST_LINK-target_link_directories.cmake | 7 ------- .../HOST_LINK-target_link_libraries-result.txt | 1 - .../HOST_LINK-target_link_libraries-stderr.txt | 9 --------- .../HOST_LINK-target_link_libraries.cmake | 7 ------- .../HOST_LINK-target_sources-result.txt | 1 - .../HOST_LINK-target_sources-stderr.txt | 9 --------- .../GeneratorExpression/HOST_LINK-target_sources.cmake | 2 -- Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake | 15 --------------- 83 files changed, 201 insertions(+), 195 deletions(-) create mode 100644 Tests/RunCMake/GenEx-HOST_LINK/CMakeLists.txt create mode 100644 Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_custom_command-result.txt create mode 100644 Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_custom_command-stderr.txt create mode 100644 Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_custom_command.cmake create mode 100644 Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_custom_target-result.txt create mode 100644 Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_custom_target-stderr.txt create mode 100644 Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_custom_target.cmake create mode 100644 Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_executable-result.txt create mode 100644 Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_executable-stderr.txt create mode 100644 Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_executable.cmake create mode 100644 Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_library-result.txt create mode 100644 Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_library-stderr.txt create mode 100644 Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_library.cmake create mode 100644 Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_test-result.txt create mode 100644 Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_test-stderr.txt create mode 100644 Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_test.cmake create mode 100644 Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-install-result.txt create mode 100644 Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-install-stderr.txt create mode 100644 Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-install.cmake create mode 100644 Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-link_depends-result.txt create mode 100644 Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-link_depends-stderr.txt create mode 100644 Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-link_depends.cmake create mode 100644 Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_compile_definitions-result.txt create mode 100644 Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_compile_definitions-stderr.txt create mode 100644 Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_compile_definitions.cmake create mode 100644 Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_compile_options-result.txt create mode 100644 Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_compile_options-stderr.txt create mode 100644 Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_compile_options.cmake create mode 100644 Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_include_directories-result.txt create mode 100644 Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_include_directories-stderr.txt create mode 100644 Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_include_directories.cmake create mode 100644 Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_link_directories-result.txt create mode 100644 Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_link_directories-stderr.txt create mode 100644 Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_link_directories.cmake create mode 100644 Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_link_libraries-result.txt create mode 100644 Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_link_libraries-stderr.txt create mode 100644 Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_link_libraries.cmake create mode 100644 Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_sources-result.txt create mode 100644 Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_sources-stderr.txt create mode 100644 Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_sources.cmake create mode 100644 Tests/RunCMake/GenEx-HOST_LINK/RunCMakeTest.cmake create mode 100644 Tests/RunCMake/GenEx-HOST_LINK/empty.c delete mode 100644 Tests/RunCMake/GeneratorExpression/HOST_LINK-add_custom_command-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/HOST_LINK-add_custom_command-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/HOST_LINK-add_custom_command.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/HOST_LINK-add_custom_target-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/HOST_LINK-add_custom_target-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/HOST_LINK-add_custom_target.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/HOST_LINK-add_executable-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/HOST_LINK-add_executable-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/HOST_LINK-add_executable.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/HOST_LINK-add_library-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/HOST_LINK-add_library-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/HOST_LINK-add_library.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/HOST_LINK-add_test-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/HOST_LINK-add_test-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/HOST_LINK-add_test.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/HOST_LINK-install-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/HOST_LINK-install-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/HOST_LINK-install.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/HOST_LINK-link_depends-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/HOST_LINK-link_depends-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/HOST_LINK-link_depends.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/HOST_LINK-target_compile_definitions-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/HOST_LINK-target_compile_definitions-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/HOST_LINK-target_compile_definitions.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/HOST_LINK-target_compile_options-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/HOST_LINK-target_compile_options-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/HOST_LINK-target_compile_options.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/HOST_LINK-target_include_directories-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/HOST_LINK-target_include_directories-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/HOST_LINK-target_include_directories.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/HOST_LINK-target_link_directories-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/HOST_LINK-target_link_directories-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/HOST_LINK-target_link_directories.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/HOST_LINK-target_link_libraries-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/HOST_LINK-target_link_libraries-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/HOST_LINK-target_link_libraries.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/HOST_LINK-target_sources-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/HOST_LINK-target_sources-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/HOST_LINK-target_sources.cmake diff --git a/Tests/RunCMake/CMakeLists.txt b/Tests/RunCMake/CMakeLists.txt index 8d7a13b..e66e325 100644 --- a/Tests/RunCMake/CMakeLists.txt +++ b/Tests/RunCMake/CMakeLists.txt @@ -223,6 +223,7 @@ add_RunCMake_test(GenEx-COMPILE_LANGUAGE) add_RunCMake_test(GenEx-COMPILE_LANG_AND_ID) add_RunCMake_test(GenEx-LINK_LANGUAGE) add_RunCMake_test(GenEx-LINK_LANG_AND_ID) +add_RunCMake_test(GenEx-HOST_LINK) add_RunCMake_test(GeneratorExpression) add_RunCMake_test(GeneratorInstance) add_RunCMake_test(GeneratorPlatform) diff --git a/Tests/RunCMake/GenEx-HOST_LINK/CMakeLists.txt b/Tests/RunCMake/GenEx-HOST_LINK/CMakeLists.txt new file mode 100644 index 0000000..b646c4a --- /dev/null +++ b/Tests/RunCMake/GenEx-HOST_LINK/CMakeLists.txt @@ -0,0 +1,3 @@ +cmake_minimum_required(VERSION 3.18) +project(${RunCMake_TEST} NONE) +include(${RunCMake_TEST}.cmake) diff --git a/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_custom_command-result.txt b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_custom_command-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_custom_command-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_custom_command-stderr.txt b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_custom_command-stderr.txt new file mode 100644 index 0000000..5ad41b9 --- /dev/null +++ b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_custom_command-stderr.txt @@ -0,0 +1,9 @@ +CMake Error at HOST_LINK-add_custom_command.cmake:[0-9]+ \(add_custom_command\): + Error evaluating generator expression: + + \$ + + \$ 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/GenEx-HOST_LINK/HOST_LINK-add_custom_command.cmake b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_custom_command.cmake new file mode 100644 index 0000000..4d6e305 --- /dev/null +++ b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_custom_command.cmake @@ -0,0 +1,4 @@ +add_custom_target(drive) +add_custom_command(TARGET drive PRE_BUILD + COMMAND ${CMAKE_COMMAND} -E echo $ +) diff --git a/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_custom_target-result.txt b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_custom_target-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_custom_target-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_custom_target-stderr.txt b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_custom_target-stderr.txt new file mode 100644 index 0000000..c44202a --- /dev/null +++ b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_custom_target-stderr.txt @@ -0,0 +1,9 @@ +CMake Error at HOST_LINK-add_custom_target.cmake:[0-9]+ \(add_custom_target\): + Error evaluating generator expression: + + \$ + + \$ 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/GenEx-HOST_LINK/HOST_LINK-add_custom_target.cmake b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_custom_target.cmake new file mode 100644 index 0000000..eec072a --- /dev/null +++ b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_custom_target.cmake @@ -0,0 +1,3 @@ +add_custom_target(drive + COMMAND ${CMAKE_COMMAND} -E echo $ +) diff --git a/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_executable-result.txt b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_executable-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_executable-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_executable-stderr.txt b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_executable-stderr.txt new file mode 100644 index 0000000..b395515 --- /dev/null +++ b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_executable-stderr.txt @@ -0,0 +1,9 @@ +CMake Error at HOST_LINK-add_executable.cmake:[0-9]+ \(add_executable\): + Error evaluating generator expression: + + \$ + + \$ 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/GenEx-HOST_LINK/HOST_LINK-add_executable.cmake b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_executable.cmake new file mode 100644 index 0000000..c9f74a5 --- /dev/null +++ b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_executable.cmake @@ -0,0 +1 @@ +add_executable(empty $) diff --git a/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_library-result.txt b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_library-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_library-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_library-stderr.txt b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_library-stderr.txt new file mode 100644 index 0000000..4bd27be --- /dev/null +++ b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_library-stderr.txt @@ -0,0 +1,9 @@ +CMake Error at HOST_LINK-add_library.cmake:[0-9]+ \(add_library\): + Error evaluating generator expression: + + \$ + + \$ 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/GenEx-HOST_LINK/HOST_LINK-add_library.cmake b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_library.cmake new file mode 100644 index 0000000..44135af --- /dev/null +++ b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_library.cmake @@ -0,0 +1 @@ +add_library(empty $) diff --git a/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_test-result.txt b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_test-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_test-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_test-stderr.txt b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_test-stderr.txt new file mode 100644 index 0000000..012ad21 --- /dev/null +++ b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_test-stderr.txt @@ -0,0 +1,9 @@ +CMake Error at HOST_LINK-add_test.cmake:[0-9]+ \(add_test\): + Error evaluating generator expression: + + \$ + + \$ 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/GenEx-HOST_LINK/HOST_LINK-add_test.cmake b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_test.cmake new file mode 100644 index 0000000..4b472af --- /dev/null +++ b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-add_test.cmake @@ -0,0 +1,5 @@ + +include(CTest) +enable_testing() + +add_test(NAME dummy COMMAND ${CMAKE_COMMAND} -E echo $) diff --git a/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-install-result.txt b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-install-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-install-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-install-stderr.txt b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-install-stderr.txt new file mode 100644 index 0000000..c265ec4 --- /dev/null +++ b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-install-stderr.txt @@ -0,0 +1,7 @@ +CMake Error: + Error evaluating generator expression: + + \$ + + \$ may only be used with binary targets to specify link + options. diff --git a/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-install.cmake b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-install.cmake new file mode 100644 index 0000000..b4dff68 --- /dev/null +++ b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-install.cmake @@ -0,0 +1,5 @@ + +install(FILES + $ + DESTINATION src +) diff --git a/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-link_depends-result.txt b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-link_depends-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-link_depends-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-link_depends-stderr.txt b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-link_depends-stderr.txt new file mode 100644 index 0000000..24b8b82 --- /dev/null +++ b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-link_depends-stderr.txt @@ -0,0 +1,7 @@ +CMake Error: + Error evaluating generator expression: + + \$ + + \$ may only be used with binary targets to specify link + options. diff --git a/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-link_depends.cmake b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-link_depends.cmake new file mode 100644 index 0000000..0402f43 --- /dev/null +++ b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-link_depends.cmake @@ -0,0 +1,7 @@ + +enable_language(C) + +add_library(lib empty.c) + +add_executable(empty empty.c) +set_property(TARGET empty PROPERTY LINK_DEPENDS $) diff --git a/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_compile_definitions-result.txt b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_compile_definitions-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_compile_definitions-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_compile_definitions-stderr.txt b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_compile_definitions-stderr.txt new file mode 100644 index 0000000..6ab3c14 --- /dev/null +++ b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_compile_definitions-stderr.txt @@ -0,0 +1,9 @@ +CMake Error at HOST_LINK-target_compile_definitions.cmake:[0-9]+ \(target_compile_definitions\): + Error evaluating generator expression: + + \$ + + \$ 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/GenEx-HOST_LINK/HOST_LINK-target_compile_definitions.cmake b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_compile_definitions.cmake new file mode 100644 index 0000000..f6c130d --- /dev/null +++ b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_compile_definitions.cmake @@ -0,0 +1,4 @@ + +enable_language(C) +add_executable(empty empty.c) +target_compile_definitions(empty PRIVATE $) diff --git a/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_compile_options-result.txt b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_compile_options-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_compile_options-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_compile_options-stderr.txt b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_compile_options-stderr.txt new file mode 100644 index 0000000..0f5bbc3 --- /dev/null +++ b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_compile_options-stderr.txt @@ -0,0 +1,9 @@ +CMake Error at HOST_LINK-target_compile_options.cmake:[0-9]+ \(target_compile_options\): + Error evaluating generator expression: + + \$ + + \$ 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/GenEx-HOST_LINK/HOST_LINK-target_compile_options.cmake b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_compile_options.cmake new file mode 100644 index 0000000..53afea1 --- /dev/null +++ b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_compile_options.cmake @@ -0,0 +1,4 @@ + +enable_language(C) +add_executable(empty empty.c) +target_compile_options(empty PRIVATE $) diff --git a/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_include_directories-result.txt b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_include_directories-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_include_directories-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_include_directories-stderr.txt b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_include_directories-stderr.txt new file mode 100644 index 0000000..9a2634a --- /dev/null +++ b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_include_directories-stderr.txt @@ -0,0 +1,9 @@ +CMake Error at HOST_LINK-target_include_directories.cmake:[0-9]+ \(target_include_directories\): + Error evaluating generator expression: + + \$ + + \$ 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/GenEx-HOST_LINK/HOST_LINK-target_include_directories.cmake b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_include_directories.cmake new file mode 100644 index 0000000..aff1009 --- /dev/null +++ b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_include_directories.cmake @@ -0,0 +1,4 @@ + +enable_language(C) +add_executable(empty empty.c) +target_include_directories(empty PRIVATE $) diff --git a/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_link_directories-result.txt b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_link_directories-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_link_directories-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_link_directories-stderr.txt b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_link_directories-stderr.txt new file mode 100644 index 0000000..5225a52 --- /dev/null +++ b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_link_directories-stderr.txt @@ -0,0 +1,9 @@ +CMake Error at HOST_LINK-target_link_directories.cmake:[0-9]+ \(target_link_directories\): + Error evaluating generator expression: + + \$ + + \$ 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/GenEx-HOST_LINK/HOST_LINK-target_link_directories.cmake b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_link_directories.cmake new file mode 100644 index 0000000..97488ee --- /dev/null +++ b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_link_directories.cmake @@ -0,0 +1,7 @@ + +enable_language(C) + +add_library(lib empty.c) + +add_executable(empty empty.c) +target_link_directories(empty PRIVATE $) diff --git a/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_link_libraries-result.txt b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_link_libraries-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_link_libraries-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_link_libraries-stderr.txt b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_link_libraries-stderr.txt new file mode 100644 index 0000000..6c4441f --- /dev/null +++ b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_link_libraries-stderr.txt @@ -0,0 +1,9 @@ +CMake Error at HOST_LINK-target_link_libraries.cmake:[0-9]+ \(target_link_libraries\): + Error evaluating generator expression: + + \$ + + \$ 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/GenEx-HOST_LINK/HOST_LINK-target_link_libraries.cmake b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_link_libraries.cmake new file mode 100644 index 0000000..d74c92d --- /dev/null +++ b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_link_libraries.cmake @@ -0,0 +1,7 @@ + +enable_language(C) + +add_library(lib empty.c) + +add_executable(empty empty.c) +target_link_libraries(empty PRIVATE $) diff --git a/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_sources-result.txt b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_sources-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_sources-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_sources-stderr.txt b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_sources-stderr.txt new file mode 100644 index 0000000..0e25568 --- /dev/null +++ b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_sources-stderr.txt @@ -0,0 +1,9 @@ +CMake Error at HOST_LINK-target_sources.cmake:[0-9]+ \(target_sources\): + Error evaluating generator expression: + + \$ + + \$ 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/GenEx-HOST_LINK/HOST_LINK-target_sources.cmake b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_sources.cmake new file mode 100644 index 0000000..ea7bf55 --- /dev/null +++ b/Tests/RunCMake/GenEx-HOST_LINK/HOST_LINK-target_sources.cmake @@ -0,0 +1,2 @@ +add_library(empty) +target_sources(empty PRIVATE $) diff --git a/Tests/RunCMake/GenEx-HOST_LINK/RunCMakeTest.cmake b/Tests/RunCMake/GenEx-HOST_LINK/RunCMakeTest.cmake new file mode 100644 index 0000000..329a7c6 --- /dev/null +++ b/Tests/RunCMake/GenEx-HOST_LINK/RunCMakeTest.cmake @@ -0,0 +1,17 @@ +include(RunCMake) + +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() diff --git a/Tests/RunCMake/GenEx-HOST_LINK/empty.c b/Tests/RunCMake/GenEx-HOST_LINK/empty.c new file mode 100644 index 0000000..e69de29 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: - - \$ - - \$ 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 $ -) 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: - - \$ - - \$ 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 $ -) 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: - - \$ - - \$ 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 $) 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: - - \$ - - \$ 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 $) 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: - - \$ - - \$ 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 $) 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: - - \$ - - \$ 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 - $ - 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: - - \$ - - \$ 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 $) 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: - - \$ - - \$ 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 $) 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: - - \$ - - \$ 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 $) 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: - - \$ - - \$ 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 $) 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: - - \$ - - \$ 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 $) 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: - - \$ - - \$ 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 $) 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: - - \$ - - \$ 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 $) 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) -- cgit v0.12