From fbead761fef491b88958ce8335c1b5aa10a99637 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 15 Jun 2020 14:34:51 -0400 Subject: Tests: Factor out RunCMake.GenEx-DEVICE_LINK test Move the `DEVICE_LINK` cases out of `RunCMake.GeneratorExpression`. --- Tests/RunCMake/CMakeLists.txt | 1 + Tests/RunCMake/GenEx-DEVICE_LINK/CMakeLists.txt | 3 +++ .../DEVICE_LINK-add_custom_command-result.txt | 1 + .../DEVICE_LINK-add_custom_command-stderr.txt | 9 +++++++++ .../DEVICE_LINK-add_custom_command.cmake | 4 ++++ .../DEVICE_LINK-add_custom_target-result.txt | 1 + .../DEVICE_LINK-add_custom_target-stderr.txt | 9 +++++++++ .../DEVICE_LINK-add_custom_target.cmake | 3 +++ .../DEVICE_LINK-add_executable-result.txt | 1 + .../DEVICE_LINK-add_executable-stderr.txt | 9 +++++++++ .../GenEx-DEVICE_LINK/DEVICE_LINK-add_executable.cmake | 1 + .../DEVICE_LINK-add_library-result.txt | 1 + .../DEVICE_LINK-add_library-stderr.txt | 9 +++++++++ .../GenEx-DEVICE_LINK/DEVICE_LINK-add_library.cmake | 1 + .../GenEx-DEVICE_LINK/DEVICE_LINK-add_test-result.txt | 1 + .../GenEx-DEVICE_LINK/DEVICE_LINK-add_test-stderr.txt | 9 +++++++++ .../GenEx-DEVICE_LINK/DEVICE_LINK-add_test.cmake | 5 +++++ .../GenEx-DEVICE_LINK/DEVICE_LINK-install-result.txt | 1 + .../GenEx-DEVICE_LINK/DEVICE_LINK-install-stderr.txt | 7 +++++++ .../GenEx-DEVICE_LINK/DEVICE_LINK-install.cmake | 5 +++++ .../DEVICE_LINK-link_depends-result.txt | 1 + .../DEVICE_LINK-link_depends-stderr.txt | 7 +++++++ .../GenEx-DEVICE_LINK/DEVICE_LINK-link_depends.cmake | 7 +++++++ .../DEVICE_LINK-target_compile_definitions-result.txt | 1 + .../DEVICE_LINK-target_compile_definitions-stderr.txt | 9 +++++++++ .../DEVICE_LINK-target_compile_definitions.cmake | 4 ++++ .../DEVICE_LINK-target_compile_options-result.txt | 1 + .../DEVICE_LINK-target_compile_options-stderr.txt | 9 +++++++++ .../DEVICE_LINK-target_compile_options.cmake | 4 ++++ .../DEVICE_LINK-target_include_directories-result.txt | 1 + .../DEVICE_LINK-target_include_directories-stderr.txt | 9 +++++++++ .../DEVICE_LINK-target_include_directories.cmake | 4 ++++ .../DEVICE_LINK-target_link_directories-result.txt | 1 + .../DEVICE_LINK-target_link_directories-stderr.txt | 9 +++++++++ .../DEVICE_LINK-target_link_directories.cmake | 7 +++++++ .../DEVICE_LINK-target_link_libraries-result.txt | 1 + .../DEVICE_LINK-target_link_libraries-stderr.txt | 9 +++++++++ .../DEVICE_LINK-target_link_libraries.cmake | 7 +++++++ .../DEVICE_LINK-target_sources-result.txt | 1 + .../DEVICE_LINK-target_sources-stderr.txt | 9 +++++++++ .../GenEx-DEVICE_LINK/DEVICE_LINK-target_sources.cmake | 2 ++ Tests/RunCMake/GenEx-DEVICE_LINK/RunCMakeTest.cmake | 17 +++++++++++++++++ Tests/RunCMake/GenEx-DEVICE_LINK/empty.c | 0 .../DEVICE_LINK-add_custom_command-result.txt | 1 - .../DEVICE_LINK-add_custom_command-stderr.txt | 9 --------- .../DEVICE_LINK-add_custom_command.cmake | 4 ---- .../DEVICE_LINK-add_custom_target-result.txt | 1 - .../DEVICE_LINK-add_custom_target-stderr.txt | 9 --------- .../DEVICE_LINK-add_custom_target.cmake | 3 --- .../DEVICE_LINK-add_executable-result.txt | 1 - .../DEVICE_LINK-add_executable-stderr.txt | 9 --------- .../DEVICE_LINK-add_executable.cmake | 1 - .../DEVICE_LINK-add_library-result.txt | 1 - .../DEVICE_LINK-add_library-stderr.txt | 9 --------- .../GeneratorExpression/DEVICE_LINK-add_library.cmake | 1 - .../GeneratorExpression/DEVICE_LINK-add_test-result.txt | 1 - .../GeneratorExpression/DEVICE_LINK-add_test-stderr.txt | 9 --------- .../GeneratorExpression/DEVICE_LINK-add_test.cmake | 5 ----- .../GeneratorExpression/DEVICE_LINK-install-result.txt | 1 - .../GeneratorExpression/DEVICE_LINK-install-stderr.txt | 7 ------- .../GeneratorExpression/DEVICE_LINK-install.cmake | 5 ----- .../DEVICE_LINK-link_depends-result.txt | 1 - .../DEVICE_LINK-link_depends-stderr.txt | 7 ------- .../GeneratorExpression/DEVICE_LINK-link_depends.cmake | 7 ------- .../DEVICE_LINK-target_compile_definitions-result.txt | 1 - .../DEVICE_LINK-target_compile_definitions-stderr.txt | 9 --------- .../DEVICE_LINK-target_compile_definitions.cmake | 4 ---- .../DEVICE_LINK-target_compile_options-result.txt | 1 - .../DEVICE_LINK-target_compile_options-stderr.txt | 9 --------- .../DEVICE_LINK-target_compile_options.cmake | 4 ---- .../DEVICE_LINK-target_include_directories-result.txt | 1 - .../DEVICE_LINK-target_include_directories-stderr.txt | 9 --------- .../DEVICE_LINK-target_include_directories.cmake | 4 ---- .../DEVICE_LINK-target_link_directories-result.txt | 1 - .../DEVICE_LINK-target_link_directories-stderr.txt | 9 --------- .../DEVICE_LINK-target_link_directories.cmake | 7 ------- .../DEVICE_LINK-target_link_libraries-result.txt | 1 - .../DEVICE_LINK-target_link_libraries-stderr.txt | 9 --------- .../DEVICE_LINK-target_link_libraries.cmake | 7 ------- .../DEVICE_LINK-target_sources-result.txt | 1 - .../DEVICE_LINK-target_sources-stderr.txt | 9 --------- .../DEVICE_LINK-target_sources.cmake | 2 -- Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake | 15 --------------- 83 files changed, 201 insertions(+), 195 deletions(-) create mode 100644 Tests/RunCMake/GenEx-DEVICE_LINK/CMakeLists.txt create mode 100644 Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_custom_command-result.txt create mode 100644 Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_custom_command-stderr.txt create mode 100644 Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_custom_command.cmake create mode 100644 Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_custom_target-result.txt create mode 100644 Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_custom_target-stderr.txt create mode 100644 Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_custom_target.cmake create mode 100644 Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_executable-result.txt create mode 100644 Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_executable-stderr.txt create mode 100644 Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_executable.cmake create mode 100644 Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_library-result.txt create mode 100644 Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_library-stderr.txt create mode 100644 Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_library.cmake create mode 100644 Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_test-result.txt create mode 100644 Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_test-stderr.txt create mode 100644 Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_test.cmake create mode 100644 Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-install-result.txt create mode 100644 Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-install-stderr.txt create mode 100644 Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-install.cmake create mode 100644 Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-link_depends-result.txt create mode 100644 Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-link_depends-stderr.txt create mode 100644 Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-link_depends.cmake create mode 100644 Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_compile_definitions-result.txt create mode 100644 Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_compile_definitions-stderr.txt create mode 100644 Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_compile_definitions.cmake create mode 100644 Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_compile_options-result.txt create mode 100644 Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_compile_options-stderr.txt create mode 100644 Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_compile_options.cmake create mode 100644 Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_include_directories-result.txt create mode 100644 Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_include_directories-stderr.txt create mode 100644 Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_include_directories.cmake create mode 100644 Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_link_directories-result.txt create mode 100644 Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_link_directories-stderr.txt create mode 100644 Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_link_directories.cmake create mode 100644 Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_link_libraries-result.txt create mode 100644 Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_link_libraries-stderr.txt create mode 100644 Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_link_libraries.cmake create mode 100644 Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_sources-result.txt create mode 100644 Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_sources-stderr.txt create mode 100644 Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_sources.cmake create mode 100644 Tests/RunCMake/GenEx-DEVICE_LINK/RunCMakeTest.cmake create mode 100644 Tests/RunCMake/GenEx-DEVICE_LINK/empty.c delete mode 100644 Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_custom_command-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_custom_command-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_custom_command.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_custom_target-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_custom_target-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_custom_target.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_executable-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_executable-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_executable.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_library-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_library-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_library.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_test-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_test-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_test.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/DEVICE_LINK-install-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/DEVICE_LINK-install-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/DEVICE_LINK-install.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/DEVICE_LINK-link_depends-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/DEVICE_LINK-link_depends-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/DEVICE_LINK-link_depends.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_compile_definitions-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_compile_definitions-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_compile_definitions.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_compile_options-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_compile_options-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_compile_options.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_include_directories-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_include_directories-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_include_directories.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_link_directories-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_link_directories-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_link_directories.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_link_libraries-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_link_libraries-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_link_libraries.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_sources-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_sources-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_sources.cmake diff --git a/Tests/RunCMake/CMakeLists.txt b/Tests/RunCMake/CMakeLists.txt index e66e325..0d82dac 100644 --- a/Tests/RunCMake/CMakeLists.txt +++ b/Tests/RunCMake/CMakeLists.txt @@ -224,6 +224,7 @@ 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(GenEx-DEVICE_LINK) add_RunCMake_test(GeneratorExpression) add_RunCMake_test(GeneratorInstance) add_RunCMake_test(GeneratorPlatform) diff --git a/Tests/RunCMake/GenEx-DEVICE_LINK/CMakeLists.txt b/Tests/RunCMake/GenEx-DEVICE_LINK/CMakeLists.txt new file mode 100644 index 0000000..b646c4a --- /dev/null +++ b/Tests/RunCMake/GenEx-DEVICE_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-DEVICE_LINK/DEVICE_LINK-add_custom_command-result.txt b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_custom_command-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_custom_command-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_custom_command-stderr.txt b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_custom_command-stderr.txt new file mode 100644 index 0000000..eb15834 --- /dev/null +++ b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_custom_command-stderr.txt @@ -0,0 +1,9 @@ +CMake Error at DEVICE_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-DEVICE_LINK/DEVICE_LINK-add_custom_command.cmake b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_custom_command.cmake new file mode 100644 index 0000000..01b3784 --- /dev/null +++ b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_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-DEVICE_LINK/DEVICE_LINK-add_custom_target-result.txt b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_custom_target-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_custom_target-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_custom_target-stderr.txt b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_custom_target-stderr.txt new file mode 100644 index 0000000..cdd3043 --- /dev/null +++ b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_custom_target-stderr.txt @@ -0,0 +1,9 @@ +CMake Error at DEVICE_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-DEVICE_LINK/DEVICE_LINK-add_custom_target.cmake b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_custom_target.cmake new file mode 100644 index 0000000..35728e9 --- /dev/null +++ b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_custom_target.cmake @@ -0,0 +1,3 @@ +add_custom_target(drive + COMMAND ${CMAKE_COMMAND} -E echo $ +) diff --git a/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_executable-result.txt b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_executable-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_executable-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_executable-stderr.txt b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_executable-stderr.txt new file mode 100644 index 0000000..56b595c --- /dev/null +++ b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_executable-stderr.txt @@ -0,0 +1,9 @@ +CMake Error at DEVICE_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-DEVICE_LINK/DEVICE_LINK-add_executable.cmake b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_executable.cmake new file mode 100644 index 0000000..899f8f6 --- /dev/null +++ b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_executable.cmake @@ -0,0 +1 @@ +add_executable(empty $) diff --git a/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_library-result.txt b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_library-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_library-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_library-stderr.txt b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_library-stderr.txt new file mode 100644 index 0000000..4477e00 --- /dev/null +++ b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_library-stderr.txt @@ -0,0 +1,9 @@ +CMake Error at DEVICE_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-DEVICE_LINK/DEVICE_LINK-add_library.cmake b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_library.cmake new file mode 100644 index 0000000..fc8547b --- /dev/null +++ b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_library.cmake @@ -0,0 +1 @@ +add_library(empty $) diff --git a/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_test-result.txt b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_test-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_test-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_test-stderr.txt b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_test-stderr.txt new file mode 100644 index 0000000..99561fe --- /dev/null +++ b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_test-stderr.txt @@ -0,0 +1,9 @@ +CMake Error at DEVICE_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-DEVICE_LINK/DEVICE_LINK-add_test.cmake b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-add_test.cmake new file mode 100644 index 0000000..87d6ba1 --- /dev/null +++ b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_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-DEVICE_LINK/DEVICE_LINK-install-result.txt b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-install-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-install-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-install-stderr.txt b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-install-stderr.txt new file mode 100644 index 0000000..afb3090 --- /dev/null +++ b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_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-DEVICE_LINK/DEVICE_LINK-install.cmake b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-install.cmake new file mode 100644 index 0000000..4b6dbef --- /dev/null +++ b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-install.cmake @@ -0,0 +1,5 @@ + +install(FILES + $ + DESTINATION src +) diff --git a/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-link_depends-result.txt b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-link_depends-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-link_depends-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-link_depends-stderr.txt b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-link_depends-stderr.txt new file mode 100644 index 0000000..4fa0522 --- /dev/null +++ b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_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-DEVICE_LINK/DEVICE_LINK-link_depends.cmake b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-link_depends.cmake new file mode 100644 index 0000000..8129514 --- /dev/null +++ b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_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-DEVICE_LINK/DEVICE_LINK-target_compile_definitions-result.txt b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_compile_definitions-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_compile_definitions-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_compile_definitions-stderr.txt b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_compile_definitions-stderr.txt new file mode 100644 index 0000000..c0185e3 --- /dev/null +++ b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_compile_definitions-stderr.txt @@ -0,0 +1,9 @@ +CMake Error at DEVICE_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-DEVICE_LINK/DEVICE_LINK-target_compile_definitions.cmake b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_compile_definitions.cmake new file mode 100644 index 0000000..aaa8efc --- /dev/null +++ b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_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-DEVICE_LINK/DEVICE_LINK-target_compile_options-result.txt b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_compile_options-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_compile_options-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_compile_options-stderr.txt b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_compile_options-stderr.txt new file mode 100644 index 0000000..34ca4f2 --- /dev/null +++ b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_compile_options-stderr.txt @@ -0,0 +1,9 @@ +CMake Error at DEVICE_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-DEVICE_LINK/DEVICE_LINK-target_compile_options.cmake b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_compile_options.cmake new file mode 100644 index 0000000..a9cb7fd --- /dev/null +++ b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_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-DEVICE_LINK/DEVICE_LINK-target_include_directories-result.txt b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_include_directories-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_include_directories-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_include_directories-stderr.txt b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_include_directories-stderr.txt new file mode 100644 index 0000000..4d1642d --- /dev/null +++ b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_include_directories-stderr.txt @@ -0,0 +1,9 @@ +CMake Error at DEVICE_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-DEVICE_LINK/DEVICE_LINK-target_include_directories.cmake b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_include_directories.cmake new file mode 100644 index 0000000..03cc413 --- /dev/null +++ b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_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-DEVICE_LINK/DEVICE_LINK-target_link_directories-result.txt b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_link_directories-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_link_directories-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_link_directories-stderr.txt b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_link_directories-stderr.txt new file mode 100644 index 0000000..d924916 --- /dev/null +++ b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_link_directories-stderr.txt @@ -0,0 +1,9 @@ +CMake Error at DEVICE_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-DEVICE_LINK/DEVICE_LINK-target_link_directories.cmake b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_link_directories.cmake new file mode 100644 index 0000000..e50d27d --- /dev/null +++ b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_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-DEVICE_LINK/DEVICE_LINK-target_link_libraries-result.txt b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_link_libraries-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_link_libraries-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_link_libraries-stderr.txt b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_link_libraries-stderr.txt new file mode 100644 index 0000000..1436fa8 --- /dev/null +++ b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_link_libraries-stderr.txt @@ -0,0 +1,9 @@ +CMake Error at DEVICE_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-DEVICE_LINK/DEVICE_LINK-target_link_libraries.cmake b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_link_libraries.cmake new file mode 100644 index 0000000..971f562 --- /dev/null +++ b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_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-DEVICE_LINK/DEVICE_LINK-target_sources-result.txt b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_sources-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_sources-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_sources-stderr.txt b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_sources-stderr.txt new file mode 100644 index 0000000..c9b602d --- /dev/null +++ b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_sources-stderr.txt @@ -0,0 +1,9 @@ +CMake Error at DEVICE_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-DEVICE_LINK/DEVICE_LINK-target_sources.cmake b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_sources.cmake new file mode 100644 index 0000000..94bac9e --- /dev/null +++ b/Tests/RunCMake/GenEx-DEVICE_LINK/DEVICE_LINK-target_sources.cmake @@ -0,0 +1,2 @@ +add_library(empty) +target_sources(empty PRIVATE $) diff --git a/Tests/RunCMake/GenEx-DEVICE_LINK/RunCMakeTest.cmake b/Tests/RunCMake/GenEx-DEVICE_LINK/RunCMakeTest.cmake new file mode 100644 index 0000000..1e44601 --- /dev/null +++ b/Tests/RunCMake/GenEx-DEVICE_LINK/RunCMakeTest.cmake @@ -0,0 +1,17 @@ +include(RunCMake) + +run_cmake(DEVICE_LINK-add_custom_target) +run_cmake(DEVICE_LINK-add_custom_command) +run_cmake(DEVICE_LINK-install) +run_cmake(DEVICE_LINK-add_executable) +run_cmake(DEVICE_LINK-add_library) +run_cmake(DEVICE_LINK-add_test) +run_cmake(DEVICE_LINK-target_sources) +run_cmake(DEVICE_LINK-target_compile_definitions) +run_cmake(DEVICE_LINK-target_compile_options) +run_cmake(DEVICE_LINK-target_include_directories) +run_cmake(DEVICE_LINK-target_link_libraries) +run_cmake(DEVICE_LINK-target_link_directories) +if(RunCMake_GENERATOR MATCHES "(Ninja|Makefile)") + run_cmake(DEVICE_LINK-link_depends) +endif() diff --git a/Tests/RunCMake/GenEx-DEVICE_LINK/empty.c b/Tests/RunCMake/GenEx-DEVICE_LINK/empty.c new file mode 100644 index 0000000..e69de29 diff --git a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_custom_command-result.txt b/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_custom_command-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_custom_command-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_custom_command-stderr.txt b/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_custom_command-stderr.txt deleted file mode 100644 index eb15834..0000000 --- a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_custom_command-stderr.txt +++ /dev/null @@ -1,9 +0,0 @@ -CMake Error at DEVICE_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/DEVICE_LINK-add_custom_command.cmake b/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_custom_command.cmake deleted file mode 100644 index 01b3784..0000000 --- a/Tests/RunCMake/GeneratorExpression/DEVICE_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/DEVICE_LINK-add_custom_target-result.txt b/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_custom_target-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_custom_target-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_custom_target-stderr.txt b/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_custom_target-stderr.txt deleted file mode 100644 index cdd3043..0000000 --- a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_custom_target-stderr.txt +++ /dev/null @@ -1,9 +0,0 @@ -CMake Error at DEVICE_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/DEVICE_LINK-add_custom_target.cmake b/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_custom_target.cmake deleted file mode 100644 index 35728e9..0000000 --- a/Tests/RunCMake/GeneratorExpression/DEVICE_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/DEVICE_LINK-add_executable-result.txt b/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_executable-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_executable-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_executable-stderr.txt b/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_executable-stderr.txt deleted file mode 100644 index 56b595c..0000000 --- a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_executable-stderr.txt +++ /dev/null @@ -1,9 +0,0 @@ -CMake Error at DEVICE_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/DEVICE_LINK-add_executable.cmake b/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_executable.cmake deleted file mode 100644 index 899f8f6..0000000 --- a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_executable.cmake +++ /dev/null @@ -1 +0,0 @@ -add_executable(empty $) diff --git a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_library-result.txt b/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_library-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_library-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_library-stderr.txt b/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_library-stderr.txt deleted file mode 100644 index 4477e00..0000000 --- a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_library-stderr.txt +++ /dev/null @@ -1,9 +0,0 @@ -CMake Error at DEVICE_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/DEVICE_LINK-add_library.cmake b/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_library.cmake deleted file mode 100644 index fc8547b..0000000 --- a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_library.cmake +++ /dev/null @@ -1 +0,0 @@ -add_library(empty $) diff --git a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_test-result.txt b/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_test-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_test-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_test-stderr.txt b/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_test-stderr.txt deleted file mode 100644 index 99561fe..0000000 --- a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_test-stderr.txt +++ /dev/null @@ -1,9 +0,0 @@ -CMake Error at DEVICE_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/DEVICE_LINK-add_test.cmake b/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-add_test.cmake deleted file mode 100644 index 87d6ba1..0000000 --- a/Tests/RunCMake/GeneratorExpression/DEVICE_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/DEVICE_LINK-install-result.txt b/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-install-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-install-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-install-stderr.txt b/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-install-stderr.txt deleted file mode 100644 index afb3090..0000000 --- a/Tests/RunCMake/GeneratorExpression/DEVICE_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/DEVICE_LINK-install.cmake b/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-install.cmake deleted file mode 100644 index 4b6dbef..0000000 --- a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-install.cmake +++ /dev/null @@ -1,5 +0,0 @@ - -install(FILES - $ - DESTINATION src -) diff --git a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-link_depends-result.txt b/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-link_depends-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-link_depends-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-link_depends-stderr.txt b/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-link_depends-stderr.txt deleted file mode 100644 index 4fa0522..0000000 --- a/Tests/RunCMake/GeneratorExpression/DEVICE_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/DEVICE_LINK-link_depends.cmake b/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-link_depends.cmake deleted file mode 100644 index 8129514..0000000 --- a/Tests/RunCMake/GeneratorExpression/DEVICE_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/DEVICE_LINK-target_compile_definitions-result.txt b/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_compile_definitions-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_compile_definitions-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_compile_definitions-stderr.txt b/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_compile_definitions-stderr.txt deleted file mode 100644 index c0185e3..0000000 --- a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_compile_definitions-stderr.txt +++ /dev/null @@ -1,9 +0,0 @@ -CMake Error at DEVICE_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/DEVICE_LINK-target_compile_definitions.cmake b/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_compile_definitions.cmake deleted file mode 100644 index aaa8efc..0000000 --- a/Tests/RunCMake/GeneratorExpression/DEVICE_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/DEVICE_LINK-target_compile_options-result.txt b/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_compile_options-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_compile_options-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_compile_options-stderr.txt b/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_compile_options-stderr.txt deleted file mode 100644 index 34ca4f2..0000000 --- a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_compile_options-stderr.txt +++ /dev/null @@ -1,9 +0,0 @@ -CMake Error at DEVICE_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/DEVICE_LINK-target_compile_options.cmake b/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_compile_options.cmake deleted file mode 100644 index a9cb7fd..0000000 --- a/Tests/RunCMake/GeneratorExpression/DEVICE_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/DEVICE_LINK-target_include_directories-result.txt b/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_include_directories-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_include_directories-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_include_directories-stderr.txt b/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_include_directories-stderr.txt deleted file mode 100644 index 4d1642d..0000000 --- a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_include_directories-stderr.txt +++ /dev/null @@ -1,9 +0,0 @@ -CMake Error at DEVICE_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/DEVICE_LINK-target_include_directories.cmake b/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_include_directories.cmake deleted file mode 100644 index 03cc413..0000000 --- a/Tests/RunCMake/GeneratorExpression/DEVICE_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/DEVICE_LINK-target_link_directories-result.txt b/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_link_directories-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_link_directories-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_link_directories-stderr.txt b/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_link_directories-stderr.txt deleted file mode 100644 index d924916..0000000 --- a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_link_directories-stderr.txt +++ /dev/null @@ -1,9 +0,0 @@ -CMake Error at DEVICE_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/DEVICE_LINK-target_link_directories.cmake b/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_link_directories.cmake deleted file mode 100644 index e50d27d..0000000 --- a/Tests/RunCMake/GeneratorExpression/DEVICE_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/DEVICE_LINK-target_link_libraries-result.txt b/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_link_libraries-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_link_libraries-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_link_libraries-stderr.txt b/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_link_libraries-stderr.txt deleted file mode 100644 index 1436fa8..0000000 --- a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_link_libraries-stderr.txt +++ /dev/null @@ -1,9 +0,0 @@ -CMake Error at DEVICE_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/DEVICE_LINK-target_link_libraries.cmake b/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_link_libraries.cmake deleted file mode 100644 index 971f562..0000000 --- a/Tests/RunCMake/GeneratorExpression/DEVICE_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/DEVICE_LINK-target_sources-result.txt b/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_sources-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_sources-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_sources-stderr.txt b/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_sources-stderr.txt deleted file mode 100644 index c9b602d..0000000 --- a/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_sources-stderr.txt +++ /dev/null @@ -1,9 +0,0 @@ -CMake Error at DEVICE_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/DEVICE_LINK-target_sources.cmake b/Tests/RunCMake/GeneratorExpression/DEVICE_LINK-target_sources.cmake deleted file mode 100644 index 94bac9e..0000000 --- a/Tests/RunCMake/GeneratorExpression/DEVICE_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 dfe6695..a1eaf8c 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(DEVICE_LINK-add_custom_target) -run_cmake(DEVICE_LINK-add_custom_command) -run_cmake(DEVICE_LINK-install) -run_cmake(DEVICE_LINK-add_executable) -run_cmake(DEVICE_LINK-add_library) -run_cmake(DEVICE_LINK-add_test) -run_cmake(DEVICE_LINK-target_sources) -run_cmake(DEVICE_LINK-target_compile_definitions) -run_cmake(DEVICE_LINK-target_compile_options) -run_cmake(DEVICE_LINK-target_include_directories) -run_cmake(DEVICE_LINK-target_link_libraries) -run_cmake(DEVICE_LINK-target_link_directories) -if(RunCMake_GENERATOR MATCHES "(Ninja|Makefile)") - run_cmake(DEVICE_LINK-link_depends) -endif() run_cmake(TARGET_FILE-recursion) run_cmake(OUTPUT_NAME-recursion) run_cmake(TARGET_FILE_PREFIX) -- cgit v0.12