From f3f6317ca3bc0d5820cd919aee4c9e8e225f617d Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 15 Jun 2020 14:27:44 -0400 Subject: Tests: Factor out RunCMake.GenEx-LINK_LANGUAGE test Move the `LINK_LANGUAGE` cases out of `RunCMake.GeneratorExpression`. --- Tests/RunCMake/CMakeLists.txt | 1 + Tests/RunCMake/GenEx-LINK_LANGUAGE/CMakeLists.txt | 3 +++ .../LINK_LANGUAGE-add_custom_command-result.txt | 1 + .../LINK_LANGUAGE-add_custom_command-stderr.txt | 9 +++++++++ .../LINK_LANGUAGE-add_custom_command.cmake | 4 ++++ .../LINK_LANGUAGE-add_custom_target-result.txt | 1 + .../LINK_LANGUAGE-add_custom_target-stderr.txt | 9 +++++++++ .../LINK_LANGUAGE-add_custom_target.cmake | 3 +++ .../LINK_LANGUAGE-add_executable-result.txt | 1 + .../LINK_LANGUAGE-add_executable-stderr.txt | 9 +++++++++ .../LINK_LANGUAGE-add_executable.cmake | 1 + .../LINK_LANGUAGE-add_library-result.txt | 1 + .../LINK_LANGUAGE-add_library-stderr.txt | 9 +++++++++ .../GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_library.cmake | 1 + .../GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_test-result.txt | 1 + .../GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_test-stderr.txt | 9 +++++++++ .../GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_test.cmake | 5 +++++ .../LINK_LANGUAGE-file_generate-result.txt | 1 + .../LINK_LANGUAGE-file_generate-stderr.txt | 9 +++++++++ .../GenEx-LINK_LANGUAGE/LINK_LANGUAGE-file_generate.cmake | 6 ++++++ .../GenEx-LINK_LANGUAGE/LINK_LANGUAGE-install-result.txt | 1 + .../GenEx-LINK_LANGUAGE/LINK_LANGUAGE-install-stderr.txt | 10 ++++++++++ .../GenEx-LINK_LANGUAGE/LINK_LANGUAGE-install.cmake | 5 +++++ .../LINK_LANGUAGE-target_sources-result.txt | 1 + .../LINK_LANGUAGE-target_sources-stderr.txt | 9 +++++++++ .../LINK_LANGUAGE-target_sources.cmake | 2 ++ .../GenEx-LINK_LANGUAGE/LINK_LANGUAGE-unknown-lang.cmake | 4 ++++ .../LINK_LANGUAGE-wrong-usage1-result.txt | 1 + .../LINK_LANGUAGE-wrong-usage1-stderr.txt | 9 +++++++++ .../GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage1.cmake | 4 ++++ .../LINK_LANGUAGE-wrong-usage2-result.txt | 1 + .../LINK_LANGUAGE-wrong-usage2-stderr.txt | 9 +++++++++ .../GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage2.cmake | 4 ++++ .../LINK_LANGUAGE-wrong-usage3-result.txt | 1 + .../LINK_LANGUAGE-wrong-usage3-stderr.txt | 9 +++++++++ .../GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage3.cmake | 4 ++++ .../LINK_LANGUAGE-wrong-usage4-result.txt | 1 + .../LINK_LANGUAGE-wrong-usage4-stderr.txt | 8 ++++++++ .../GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage4.cmake | 7 +++++++ Tests/RunCMake/GenEx-LINK_LANGUAGE/RunCMakeTest.cmake | 15 +++++++++++++++ Tests/RunCMake/GenEx-LINK_LANGUAGE/empty.c | 0 .../LINK_LANGUAGE-add_custom_command-result.txt | 1 - .../LINK_LANGUAGE-add_custom_command-stderr.txt | 9 --------- .../LINK_LANGUAGE-add_custom_command.cmake | 4 ---- .../LINK_LANGUAGE-add_custom_target-result.txt | 1 - .../LINK_LANGUAGE-add_custom_target-stderr.txt | 9 --------- .../LINK_LANGUAGE-add_custom_target.cmake | 3 --- .../LINK_LANGUAGE-add_executable-result.txt | 1 - .../LINK_LANGUAGE-add_executable-stderr.txt | 9 --------- .../LINK_LANGUAGE-add_executable.cmake | 1 - .../LINK_LANGUAGE-add_library-result.txt | 1 - .../LINK_LANGUAGE-add_library-stderr.txt | 9 --------- .../GeneratorExpression/LINK_LANGUAGE-add_library.cmake | 1 - .../GeneratorExpression/LINK_LANGUAGE-add_test-result.txt | 1 - .../GeneratorExpression/LINK_LANGUAGE-add_test-stderr.txt | 9 --------- .../GeneratorExpression/LINK_LANGUAGE-add_test.cmake | 5 ----- .../LINK_LANGUAGE-file_generate-result.txt | 1 - .../LINK_LANGUAGE-file_generate-stderr.txt | 9 --------- .../GeneratorExpression/LINK_LANGUAGE-file_generate.cmake | 6 ------ .../GeneratorExpression/LINK_LANGUAGE-install-result.txt | 1 - .../GeneratorExpression/LINK_LANGUAGE-install-stderr.txt | 10 ---------- .../GeneratorExpression/LINK_LANGUAGE-install.cmake | 5 ----- .../LINK_LANGUAGE-target_sources-result.txt | 1 - .../LINK_LANGUAGE-target_sources-stderr.txt | 9 --------- .../LINK_LANGUAGE-target_sources.cmake | 2 -- .../GeneratorExpression/LINK_LANGUAGE-unknown-lang.cmake | 4 ---- .../LINK_LANGUAGE-wrong-usage1-result.txt | 1 - .../LINK_LANGUAGE-wrong-usage1-stderr.txt | 9 --------- .../GeneratorExpression/LINK_LANGUAGE-wrong-usage1.cmake | 4 ---- .../LINK_LANGUAGE-wrong-usage2-result.txt | 1 - .../LINK_LANGUAGE-wrong-usage2-stderr.txt | 9 --------- .../GeneratorExpression/LINK_LANGUAGE-wrong-usage2.cmake | 4 ---- .../LINK_LANGUAGE-wrong-usage3-result.txt | 1 - .../LINK_LANGUAGE-wrong-usage3-stderr.txt | 9 --------- .../GeneratorExpression/LINK_LANGUAGE-wrong-usage3.cmake | 4 ---- .../LINK_LANGUAGE-wrong-usage4-result.txt | 1 - .../LINK_LANGUAGE-wrong-usage4-stderr.txt | 8 -------- .../GeneratorExpression/LINK_LANGUAGE-wrong-usage4.cmake | 7 ------- Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake | 13 ------------- 79 files changed, 189 insertions(+), 183 deletions(-) create mode 100644 Tests/RunCMake/GenEx-LINK_LANGUAGE/CMakeLists.txt create mode 100644 Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_custom_command-result.txt create mode 100644 Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_custom_command-stderr.txt create mode 100644 Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_custom_command.cmake create mode 100644 Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_custom_target-result.txt create mode 100644 Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_custom_target-stderr.txt create mode 100644 Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_custom_target.cmake create mode 100644 Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_executable-result.txt create mode 100644 Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_executable-stderr.txt create mode 100644 Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_executable.cmake create mode 100644 Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_library-result.txt create mode 100644 Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_library-stderr.txt create mode 100644 Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_library.cmake create mode 100644 Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_test-result.txt create mode 100644 Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_test-stderr.txt create mode 100644 Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_test.cmake create mode 100644 Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-file_generate-result.txt create mode 100644 Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-file_generate-stderr.txt create mode 100644 Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-file_generate.cmake create mode 100644 Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-install-result.txt create mode 100644 Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-install-stderr.txt create mode 100644 Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-install.cmake create mode 100644 Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-target_sources-result.txt create mode 100644 Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-target_sources-stderr.txt create mode 100644 Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-target_sources.cmake create mode 100644 Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-unknown-lang.cmake create mode 100644 Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage1-result.txt create mode 100644 Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage1-stderr.txt create mode 100644 Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage1.cmake create mode 100644 Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage2-result.txt create mode 100644 Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage2-stderr.txt create mode 100644 Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage2.cmake create mode 100644 Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage3-result.txt create mode 100644 Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage3-stderr.txt create mode 100644 Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage3.cmake create mode 100644 Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage4-result.txt create mode 100644 Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage4-stderr.txt create mode 100644 Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage4.cmake create mode 100644 Tests/RunCMake/GenEx-LINK_LANGUAGE/RunCMakeTest.cmake create mode 100644 Tests/RunCMake/GenEx-LINK_LANGUAGE/empty.c delete mode 100644 Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_custom_command-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_custom_command-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_custom_command.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_custom_target-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_custom_target-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_custom_target.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_executable-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_executable-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_executable.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_library-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_library-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_library.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_test-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_test-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_test.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-file_generate-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-file_generate-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-file_generate.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-install-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-install-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-install.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-target_sources-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-target_sources-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-target_sources.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-unknown-lang.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage1-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage1-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage1.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage2-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage2-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage2.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage3-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage3-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage3.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage4-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage4-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage4.cmake diff --git a/Tests/RunCMake/CMakeLists.txt b/Tests/RunCMake/CMakeLists.txt index e87e468..b604fc1 100644 --- a/Tests/RunCMake/CMakeLists.txt +++ b/Tests/RunCMake/CMakeLists.txt @@ -221,6 +221,7 @@ if(NOT CMAKE_C_COMPILER_ID MATCHES "Watcom") endif() add_RunCMake_test(GenEx-COMPILE_LANGUAGE) add_RunCMake_test(GenEx-COMPILE_LANG_AND_ID) +add_RunCMake_test(GenEx-LINK_LANGUAGE) add_RunCMake_test(GeneratorExpression) add_RunCMake_test(GeneratorInstance) add_RunCMake_test(GeneratorPlatform) diff --git a/Tests/RunCMake/GenEx-LINK_LANGUAGE/CMakeLists.txt b/Tests/RunCMake/GenEx-LINK_LANGUAGE/CMakeLists.txt new file mode 100644 index 0000000..b646c4a --- /dev/null +++ b/Tests/RunCMake/GenEx-LINK_LANGUAGE/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-LINK_LANGUAGE/LINK_LANGUAGE-add_custom_command-result.txt b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_custom_command-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_custom_command-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_custom_command-stderr.txt b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_custom_command-stderr.txt new file mode 100644 index 0000000..0b0d458 --- /dev/null +++ b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_custom_command-stderr.txt @@ -0,0 +1,9 @@ +CMake Error at LINK_LANGUAGE-add_custom_command.cmake:2 \(add_custom_command\): + Error evaluating generator expression: + + \$ + + \$ may only be used with binary targets to specify link + libraries, link directories, link options and link depends. +Call Stack \(most recent call first\): + CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_custom_command.cmake b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_custom_command.cmake new file mode 100644 index 0000000..a378c1c --- /dev/null +++ b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-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-LINK_LANGUAGE/LINK_LANGUAGE-add_custom_target-result.txt b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_custom_target-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_custom_target-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_custom_target-stderr.txt b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_custom_target-stderr.txt new file mode 100644 index 0000000..92da634 --- /dev/null +++ b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_custom_target-stderr.txt @@ -0,0 +1,9 @@ +CMake Error at LINK_LANGUAGE-add_custom_target.cmake:1 \(add_custom_target\): + Error evaluating generator expression: + + \$ + + \$ may only be used with binary targets to specify link + libraries, link directories, link options and link depends. +Call Stack \(most recent call first\): + CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_custom_target.cmake b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_custom_target.cmake new file mode 100644 index 0000000..60b6c75 --- /dev/null +++ b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_custom_target.cmake @@ -0,0 +1,3 @@ +add_custom_target(drive + COMMAND ${CMAKE_COMMAND} -E echo $ +) diff --git a/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_executable-result.txt b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_executable-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_executable-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_executable-stderr.txt b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_executable-stderr.txt new file mode 100644 index 0000000..3bdc8e4 --- /dev/null +++ b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_executable-stderr.txt @@ -0,0 +1,9 @@ +CMake Error at LINK_LANGUAGE-add_executable.cmake:1 \(add_executable\): + Error evaluating generator expression: + + \$ + + \$ may only be used with binary targets to specify link + libraries, link directories, link options and link depends. +Call Stack \(most recent call first\): + CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_executable.cmake b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_executable.cmake new file mode 100644 index 0000000..2176b39 --- /dev/null +++ b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_executable.cmake @@ -0,0 +1 @@ +add_executable(empty empty.$) diff --git a/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_library-result.txt b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_library-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_library-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_library-stderr.txt b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_library-stderr.txt new file mode 100644 index 0000000..1bacdeb --- /dev/null +++ b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_library-stderr.txt @@ -0,0 +1,9 @@ +CMake Error at LINK_LANGUAGE-add_library.cmake:1 \(add_library\): + Error evaluating generator expression: + + \$ + + \$ may only be used with binary targets to specify link + libraries, link directories, link options and link depends. +Call Stack \(most recent call first\): + CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_library.cmake b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_library.cmake new file mode 100644 index 0000000..253f82a --- /dev/null +++ b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_library.cmake @@ -0,0 +1 @@ +add_library(empty empty.$) diff --git a/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_test-result.txt b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_test-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_test-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_test-stderr.txt b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_test-stderr.txt new file mode 100644 index 0000000..f22efde --- /dev/null +++ b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_test-stderr.txt @@ -0,0 +1,9 @@ +CMake Error at LINK_LANGUAGE-add_test.cmake:5 \(add_test\): + Error evaluating generator expression: + + \$ + + \$ may only be used with binary targets to specify link + libraries, link directories, link options and link depends. +Call Stack \(most recent call first\): + CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_test.cmake b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-add_test.cmake new file mode 100644 index 0000000..4fd547d --- /dev/null +++ b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-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-LINK_LANGUAGE/LINK_LANGUAGE-file_generate-result.txt b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-file_generate-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-file_generate-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-file_generate-stderr.txt b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-file_generate-stderr.txt new file mode 100644 index 0000000..21d26de --- /dev/null +++ b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-file_generate-stderr.txt @@ -0,0 +1,9 @@ +CMake Error at LINK_LANGUAGE-file_generate.cmake:3 \(file\): + Error evaluating generator expression: + + \$ + + \$ may only be used with binary targets to specify link + libraries, link directories, link options and link depends. +Call Stack \(most recent call first\): + CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-file_generate.cmake b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-file_generate.cmake new file mode 100644 index 0000000..519b883 --- /dev/null +++ b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-file_generate.cmake @@ -0,0 +1,6 @@ +enable_language(CXX C) + +file(GENERATE + OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/output.txt + CONTENT "LANG_IS_$\n" +) diff --git a/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-install-result.txt b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-install-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-install-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-install-stderr.txt b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-install-stderr.txt new file mode 100644 index 0000000..73afc33 --- /dev/null +++ b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-install-stderr.txt @@ -0,0 +1,10 @@ +CMake Error: + Error evaluating generator expression: + + \$ + + \$ may only be used with binary targets to specify link + libraries, link directories, link options and link depends. + + +CMake Generate step failed. Build files cannot be regenerated correctly. diff --git a/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-install.cmake b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-install.cmake new file mode 100644 index 0000000..533c0b4 --- /dev/null +++ b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-install.cmake @@ -0,0 +1,5 @@ + +install(FILES + empty.$ + DESTINATION src +) diff --git a/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-target_sources-result.txt b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-target_sources-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-target_sources-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-target_sources-stderr.txt b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-target_sources-stderr.txt new file mode 100644 index 0000000..d8121cc --- /dev/null +++ b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-target_sources-stderr.txt @@ -0,0 +1,9 @@ +CMake Error at LINK_LANGUAGE-target_sources.cmake:2 \(target_sources\): + Error evaluating generator expression: + + \$ + + \$ may only be used with binary targets to specify link + libraries, link directories, link options and link depends. +Call Stack \(most recent call first\): + CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-target_sources.cmake b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-target_sources.cmake new file mode 100644 index 0000000..c134c01 --- /dev/null +++ b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-target_sources.cmake @@ -0,0 +1,2 @@ +add_library(empty) +target_sources(empty PRIVATE empty.$) diff --git a/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-unknown-lang.cmake b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-unknown-lang.cmake new file mode 100644 index 0000000..0ba472d --- /dev/null +++ b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-unknown-lang.cmake @@ -0,0 +1,4 @@ + +enable_language(C) +add_executable(empty empty.c) +target_link_options(empty PRIVATE $<$:$>) diff --git a/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage1-result.txt b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage1-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage1-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage1-stderr.txt b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage1-stderr.txt new file mode 100644 index 0000000..1e3a83b --- /dev/null +++ b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage1-stderr.txt @@ -0,0 +1,9 @@ +CMake Error at LINK_LANGUAGE-wrong-usage1.cmake:4 \(target_compile_definitions\): + Error evaluating generator expression: + + \$ + + \$ may only be used with binary targets to specify link + libraries, link directories, link options and link depends. +Call Stack \(most recent call first\): + CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage1.cmake b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage1.cmake new file mode 100644 index 0000000..90b7ce0 --- /dev/null +++ b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage1.cmake @@ -0,0 +1,4 @@ + +enable_language(C) +add_executable(empty empty.c) +target_compile_definitions(empty PRIVATE $<$:DEF>) diff --git a/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage2-result.txt b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage2-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage2-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage2-stderr.txt b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage2-stderr.txt new file mode 100644 index 0000000..7fe4310 --- /dev/null +++ b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage2-stderr.txt @@ -0,0 +1,9 @@ +CMake Error at LINK_LANGUAGE-wrong-usage2.cmake:4 \(target_compile_options\): + Error evaluating generator expression: + + \$ + + \$ may only be used with binary targets to specify link + libraries, link directories, link options and link depends. +Call Stack \(most recent call first\): + CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage2.cmake b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage2.cmake new file mode 100644 index 0000000..e761897 --- /dev/null +++ b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage2.cmake @@ -0,0 +1,4 @@ + +enable_language(C) +add_executable(empty empty.c) +target_compile_options(empty PRIVATE $<$:-OPT>) diff --git a/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage3-result.txt b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage3-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage3-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage3-stderr.txt b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage3-stderr.txt new file mode 100644 index 0000000..cb20e99 --- /dev/null +++ b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage3-stderr.txt @@ -0,0 +1,9 @@ +CMake Error at LINK_LANGUAGE-wrong-usage3.cmake:4 \(target_include_directories\): + Error evaluating generator expression: + + \$ + + \$ may only be used with binary targets to specify link + libraries, link directories, link options and link depends. +Call Stack \(most recent call first\): + CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage3.cmake b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage3.cmake new file mode 100644 index 0000000..96a72a1 --- /dev/null +++ b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage3.cmake @@ -0,0 +1,4 @@ + +enable_language(C) +add_executable(empty empty.c) +target_include_directories(empty PRIVATE $<$:/DIR>) diff --git a/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage4-result.txt b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage4-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage4-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage4-stderr.txt b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage4-stderr.txt new file mode 100644 index 0000000..ee36912 --- /dev/null +++ b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage4-stderr.txt @@ -0,0 +1,8 @@ +CMake Error at LINK_LANGUAGE-wrong-usage4.cmake:7 \(target_link_libraries\): + Error evaluating generator expression: + + \$ + + \$ is not supported in link libraries expression. +Call Stack \(most recent call first\): + CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage4.cmake b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage4.cmake new file mode 100644 index 0000000..3ecaabb --- /dev/null +++ b/Tests/RunCMake/GenEx-LINK_LANGUAGE/LINK_LANGUAGE-wrong-usage4.cmake @@ -0,0 +1,7 @@ + +enable_language(C) + +add_library(libC empty.c) + +add_executable(empty empty.c) +target_link_libraries(empty PRIVATE lib$) diff --git a/Tests/RunCMake/GenEx-LINK_LANGUAGE/RunCMakeTest.cmake b/Tests/RunCMake/GenEx-LINK_LANGUAGE/RunCMakeTest.cmake new file mode 100644 index 0000000..4cf0c04 --- /dev/null +++ b/Tests/RunCMake/GenEx-LINK_LANGUAGE/RunCMakeTest.cmake @@ -0,0 +1,15 @@ +include(RunCMake) + +run_cmake(LINK_LANGUAGE-add_custom_target) +run_cmake(LINK_LANGUAGE-add_custom_command) +run_cmake(LINK_LANGUAGE-install) +run_cmake(LINK_LANGUAGE-target_sources) +run_cmake(LINK_LANGUAGE-add_executable) +run_cmake(LINK_LANGUAGE-add_library) +run_cmake(LINK_LANGUAGE-add_test) +run_cmake(LINK_LANGUAGE-unknown-lang) +run_cmake(LINK_LANGUAGE-wrong-usage1) +run_cmake(LINK_LANGUAGE-wrong-usage2) +run_cmake(LINK_LANGUAGE-wrong-usage3) +run_cmake(LINK_LANGUAGE-wrong-usage4) +run_cmake(LINK_LANGUAGE-file_generate) diff --git a/Tests/RunCMake/GenEx-LINK_LANGUAGE/empty.c b/Tests/RunCMake/GenEx-LINK_LANGUAGE/empty.c new file mode 100644 index 0000000..e69de29 diff --git a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_custom_command-result.txt b/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_custom_command-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_custom_command-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_custom_command-stderr.txt b/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_custom_command-stderr.txt deleted file mode 100644 index 0b0d458..0000000 --- a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_custom_command-stderr.txt +++ /dev/null @@ -1,9 +0,0 @@ -CMake Error at LINK_LANGUAGE-add_custom_command.cmake:2 \(add_custom_command\): - Error evaluating generator expression: - - \$ - - \$ may only be used with binary targets to specify link - libraries, link directories, link options and link depends. -Call Stack \(most recent call first\): - CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_custom_command.cmake b/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_custom_command.cmake deleted file mode 100644 index a378c1c..0000000 --- a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-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/LINK_LANGUAGE-add_custom_target-result.txt b/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_custom_target-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_custom_target-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_custom_target-stderr.txt b/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_custom_target-stderr.txt deleted file mode 100644 index 92da634..0000000 --- a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_custom_target-stderr.txt +++ /dev/null @@ -1,9 +0,0 @@ -CMake Error at LINK_LANGUAGE-add_custom_target.cmake:1 \(add_custom_target\): - Error evaluating generator expression: - - \$ - - \$ may only be used with binary targets to specify link - libraries, link directories, link options and link depends. -Call Stack \(most recent call first\): - CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_custom_target.cmake b/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_custom_target.cmake deleted file mode 100644 index 60b6c75..0000000 --- a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-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/LINK_LANGUAGE-add_executable-result.txt b/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_executable-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_executable-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_executable-stderr.txt b/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_executable-stderr.txt deleted file mode 100644 index 3bdc8e4..0000000 --- a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_executable-stderr.txt +++ /dev/null @@ -1,9 +0,0 @@ -CMake Error at LINK_LANGUAGE-add_executable.cmake:1 \(add_executable\): - Error evaluating generator expression: - - \$ - - \$ may only be used with binary targets to specify link - libraries, link directories, link options and link depends. -Call Stack \(most recent call first\): - CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_executable.cmake b/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_executable.cmake deleted file mode 100644 index 2176b39..0000000 --- a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_executable.cmake +++ /dev/null @@ -1 +0,0 @@ -add_executable(empty empty.$) diff --git a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_library-result.txt b/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_library-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_library-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_library-stderr.txt b/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_library-stderr.txt deleted file mode 100644 index 1bacdeb..0000000 --- a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_library-stderr.txt +++ /dev/null @@ -1,9 +0,0 @@ -CMake Error at LINK_LANGUAGE-add_library.cmake:1 \(add_library\): - Error evaluating generator expression: - - \$ - - \$ may only be used with binary targets to specify link - libraries, link directories, link options and link depends. -Call Stack \(most recent call first\): - CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_library.cmake b/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_library.cmake deleted file mode 100644 index 253f82a..0000000 --- a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_library.cmake +++ /dev/null @@ -1 +0,0 @@ -add_library(empty empty.$) diff --git a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_test-result.txt b/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_test-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_test-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_test-stderr.txt b/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_test-stderr.txt deleted file mode 100644 index f22efde..0000000 --- a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_test-stderr.txt +++ /dev/null @@ -1,9 +0,0 @@ -CMake Error at LINK_LANGUAGE-add_test.cmake:5 \(add_test\): - Error evaluating generator expression: - - \$ - - \$ may only be used with binary targets to specify link - libraries, link directories, link options and link depends. -Call Stack \(most recent call first\): - CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_test.cmake b/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-add_test.cmake deleted file mode 100644 index 4fd547d..0000000 --- a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-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/LINK_LANGUAGE-file_generate-result.txt b/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-file_generate-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-file_generate-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-file_generate-stderr.txt b/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-file_generate-stderr.txt deleted file mode 100644 index 21d26de..0000000 --- a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-file_generate-stderr.txt +++ /dev/null @@ -1,9 +0,0 @@ -CMake Error at LINK_LANGUAGE-file_generate.cmake:3 \(file\): - Error evaluating generator expression: - - \$ - - \$ may only be used with binary targets to specify link - libraries, link directories, link options and link depends. -Call Stack \(most recent call first\): - CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-file_generate.cmake b/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-file_generate.cmake deleted file mode 100644 index 519b883..0000000 --- a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-file_generate.cmake +++ /dev/null @@ -1,6 +0,0 @@ -enable_language(CXX C) - -file(GENERATE - OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/output.txt - CONTENT "LANG_IS_$\n" -) diff --git a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-install-result.txt b/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-install-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-install-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-install-stderr.txt b/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-install-stderr.txt deleted file mode 100644 index 73afc33..0000000 --- a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-install-stderr.txt +++ /dev/null @@ -1,10 +0,0 @@ -CMake Error: - Error evaluating generator expression: - - \$ - - \$ may only be used with binary targets to specify link - libraries, link directories, link options and link depends. - - -CMake Generate step failed. Build files cannot be regenerated correctly. diff --git a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-install.cmake b/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-install.cmake deleted file mode 100644 index 533c0b4..0000000 --- a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-install.cmake +++ /dev/null @@ -1,5 +0,0 @@ - -install(FILES - empty.$ - DESTINATION src -) diff --git a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-target_sources-result.txt b/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-target_sources-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-target_sources-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-target_sources-stderr.txt b/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-target_sources-stderr.txt deleted file mode 100644 index d8121cc..0000000 --- a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-target_sources-stderr.txt +++ /dev/null @@ -1,9 +0,0 @@ -CMake Error at LINK_LANGUAGE-target_sources.cmake:2 \(target_sources\): - Error evaluating generator expression: - - \$ - - \$ may only be used with binary targets to specify link - libraries, link directories, link options and link depends. -Call Stack \(most recent call first\): - CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-target_sources.cmake b/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-target_sources.cmake deleted file mode 100644 index c134c01..0000000 --- a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-target_sources.cmake +++ /dev/null @@ -1,2 +0,0 @@ -add_library(empty) -target_sources(empty PRIVATE empty.$) diff --git a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-unknown-lang.cmake b/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-unknown-lang.cmake deleted file mode 100644 index 0ba472d..0000000 --- a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-unknown-lang.cmake +++ /dev/null @@ -1,4 +0,0 @@ - -enable_language(C) -add_executable(empty empty.c) -target_link_options(empty PRIVATE $<$:$>) diff --git a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage1-result.txt b/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage1-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage1-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage1-stderr.txt b/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage1-stderr.txt deleted file mode 100644 index 1e3a83b..0000000 --- a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage1-stderr.txt +++ /dev/null @@ -1,9 +0,0 @@ -CMake Error at LINK_LANGUAGE-wrong-usage1.cmake:4 \(target_compile_definitions\): - Error evaluating generator expression: - - \$ - - \$ may only be used with binary targets to specify link - libraries, link directories, link options and link depends. -Call Stack \(most recent call first\): - CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage1.cmake b/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage1.cmake deleted file mode 100644 index 90b7ce0..0000000 --- a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage1.cmake +++ /dev/null @@ -1,4 +0,0 @@ - -enable_language(C) -add_executable(empty empty.c) -target_compile_definitions(empty PRIVATE $<$:DEF>) diff --git a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage2-result.txt b/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage2-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage2-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage2-stderr.txt b/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage2-stderr.txt deleted file mode 100644 index 7fe4310..0000000 --- a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage2-stderr.txt +++ /dev/null @@ -1,9 +0,0 @@ -CMake Error at LINK_LANGUAGE-wrong-usage2.cmake:4 \(target_compile_options\): - Error evaluating generator expression: - - \$ - - \$ may only be used with binary targets to specify link - libraries, link directories, link options and link depends. -Call Stack \(most recent call first\): - CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage2.cmake b/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage2.cmake deleted file mode 100644 index e761897..0000000 --- a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage2.cmake +++ /dev/null @@ -1,4 +0,0 @@ - -enable_language(C) -add_executable(empty empty.c) -target_compile_options(empty PRIVATE $<$:-OPT>) diff --git a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage3-result.txt b/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage3-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage3-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage3-stderr.txt b/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage3-stderr.txt deleted file mode 100644 index cb20e99..0000000 --- a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage3-stderr.txt +++ /dev/null @@ -1,9 +0,0 @@ -CMake Error at LINK_LANGUAGE-wrong-usage3.cmake:4 \(target_include_directories\): - Error evaluating generator expression: - - \$ - - \$ may only be used with binary targets to specify link - libraries, link directories, link options and link depends. -Call Stack \(most recent call first\): - CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage3.cmake b/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage3.cmake deleted file mode 100644 index 96a72a1..0000000 --- a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage3.cmake +++ /dev/null @@ -1,4 +0,0 @@ - -enable_language(C) -add_executable(empty empty.c) -target_include_directories(empty PRIVATE $<$:/DIR>) diff --git a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage4-result.txt b/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage4-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage4-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage4-stderr.txt b/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage4-stderr.txt deleted file mode 100644 index ee36912..0000000 --- a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage4-stderr.txt +++ /dev/null @@ -1,8 +0,0 @@ -CMake Error at LINK_LANGUAGE-wrong-usage4.cmake:7 \(target_link_libraries\): - Error evaluating generator expression: - - \$ - - \$ is not supported in link libraries expression. -Call Stack \(most recent call first\): - CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage4.cmake b/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage4.cmake deleted file mode 100644 index 3ecaabb..0000000 --- a/Tests/RunCMake/GeneratorExpression/LINK_LANGUAGE-wrong-usage4.cmake +++ /dev/null @@ -1,7 +0,0 @@ - -enable_language(C) - -add_library(libC empty.c) - -add_executable(empty empty.c) -target_link_libraries(empty PRIVATE lib$) diff --git a/Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake b/Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake index 6f9acc7..a3a8408 100644 --- a/Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake +++ b/Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake @@ -23,19 +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(LINK_LANGUAGE-add_custom_target) -run_cmake(LINK_LANGUAGE-add_custom_command) -run_cmake(LINK_LANGUAGE-install) -run_cmake(LINK_LANGUAGE-target_sources) -run_cmake(LINK_LANGUAGE-add_executable) -run_cmake(LINK_LANGUAGE-add_library) -run_cmake(LINK_LANGUAGE-add_test) -run_cmake(LINK_LANGUAGE-unknown-lang) -run_cmake(LINK_LANGUAGE-wrong-usage1) -run_cmake(LINK_LANGUAGE-wrong-usage2) -run_cmake(LINK_LANGUAGE-wrong-usage3) -run_cmake(LINK_LANGUAGE-wrong-usage4) -run_cmake(LINK_LANGUAGE-file_generate) run_cmake(LINK_LANG_AND_ID-add_custom_target) run_cmake(LINK_LANG_AND_ID-add_custom_command) run_cmake(LINK_LANG_AND_ID-install) -- cgit v0.12