From 6308bfb73777a7231928509ce651b45dfb6aa657 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 15 Jun 2020 14:45:01 -0400 Subject: Tests: Factor out RunCMake.GenEx-GENEX_EVAL test Move the `GENEX_EVAL` cases and friends out of `RunCMake.GeneratorExpression`. --- Tests/RunCMake/CMakeLists.txt | 1 + Tests/RunCMake/GenEx-GENEX_EVAL/CMakeLists.txt | 3 +++ .../GenEx-GENEX_EVAL/GENEX_EVAL-check.cmake | 6 +++++ .../GENEX_EVAL-recursion1-result.txt | 1 + .../GENEX_EVAL-recursion1-stderr.txt | 26 ++++++++++++++++++++++ .../GenEx-GENEX_EVAL/GENEX_EVAL-recursion1.cmake | 9 ++++++++ .../GENEX_EVAL-recursion2-result.txt | 1 + .../GENEX_EVAL-recursion2-stderr.txt | 26 ++++++++++++++++++++++ .../GenEx-GENEX_EVAL/GENEX_EVAL-recursion2.cmake | 10 +++++++++ Tests/RunCMake/GenEx-GENEX_EVAL/GENEX_EVAL.cmake | 12 ++++++++++ Tests/RunCMake/GenEx-GENEX_EVAL/RunCMakeTest.cmake | 11 +++++++++ .../GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-check.cmake | 6 +++++ .../TARGET_GENEX_EVAL-no-arg-result.txt | 1 + .../TARGET_GENEX_EVAL-no-arg-stderr.txt | 9 ++++++++ .../TARGET_GENEX_EVAL-no-arg.cmake | 7 ++++++ .../TARGET_GENEX_EVAL-no-target-result.txt | 1 + .../TARGET_GENEX_EVAL-no-target-stderr.txt | 9 ++++++++ .../TARGET_GENEX_EVAL-no-target.cmake | 5 +++++ .../TARGET_GENEX_EVAL-non-valid-target-result.txt | 1 + .../TARGET_GENEX_EVAL-non-valid-target-stderr.txt | 8 +++++++ .../TARGET_GENEX_EVAL-non-valid-target.cmake | 5 +++++ .../TARGET_GENEX_EVAL-recursion1-result.txt | 1 + .../TARGET_GENEX_EVAL-recursion1-stderr.txt | 9 ++++++++ .../TARGET_GENEX_EVAL-recursion1.cmake | 9 ++++++++ .../TARGET_GENEX_EVAL-recursion2-result.txt | 1 + .../TARGET_GENEX_EVAL-recursion2-stderr.txt | 26 ++++++++++++++++++++++ .../TARGET_GENEX_EVAL-recursion2.cmake | 12 ++++++++++ .../GenEx-GENEX_EVAL/TARGET_GENEX_EVAL.cmake | 10 +++++++++ Tests/RunCMake/GenEx-GENEX_EVAL/empty.c | 0 .../GeneratorExpression/GENEX_EVAL-check.cmake | 6 ----- .../GENEX_EVAL-recursion1-result.txt | 1 - .../GENEX_EVAL-recursion1-stderr.txt | 26 ---------------------- .../GENEX_EVAL-recursion1.cmake | 9 -------- .../GENEX_EVAL-recursion2-result.txt | 1 - .../GENEX_EVAL-recursion2-stderr.txt | 26 ---------------------- .../GENEX_EVAL-recursion2.cmake | 10 --------- .../RunCMake/GeneratorExpression/GENEX_EVAL.cmake | 12 ---------- .../GeneratorExpression/RunCMakeTest.cmake | 9 -------- .../TARGET_GENEX_EVAL-check.cmake | 6 ----- .../TARGET_GENEX_EVAL-no-arg-result.txt | 1 - .../TARGET_GENEX_EVAL-no-arg-stderr.txt | 9 -------- .../TARGET_GENEX_EVAL-no-arg.cmake | 7 ------ .../TARGET_GENEX_EVAL-no-target-result.txt | 1 - .../TARGET_GENEX_EVAL-no-target-stderr.txt | 9 -------- .../TARGET_GENEX_EVAL-no-target.cmake | 5 ----- .../TARGET_GENEX_EVAL-non-valid-target-result.txt | 1 - .../TARGET_GENEX_EVAL-non-valid-target-stderr.txt | 8 ------- .../TARGET_GENEX_EVAL-non-valid-target.cmake | 5 ----- .../TARGET_GENEX_EVAL-recursion1-result.txt | 1 - .../TARGET_GENEX_EVAL-recursion1-stderr.txt | 9 -------- .../TARGET_GENEX_EVAL-recursion1.cmake | 9 -------- .../TARGET_GENEX_EVAL-recursion2-result.txt | 1 - .../TARGET_GENEX_EVAL-recursion2-stderr.txt | 26 ---------------------- .../TARGET_GENEX_EVAL-recursion2.cmake | 12 ---------- .../GeneratorExpression/TARGET_GENEX_EVAL.cmake | 10 --------- 55 files changed, 226 insertions(+), 220 deletions(-) create mode 100644 Tests/RunCMake/GenEx-GENEX_EVAL/CMakeLists.txt create mode 100644 Tests/RunCMake/GenEx-GENEX_EVAL/GENEX_EVAL-check.cmake create mode 100644 Tests/RunCMake/GenEx-GENEX_EVAL/GENEX_EVAL-recursion1-result.txt create mode 100644 Tests/RunCMake/GenEx-GENEX_EVAL/GENEX_EVAL-recursion1-stderr.txt create mode 100644 Tests/RunCMake/GenEx-GENEX_EVAL/GENEX_EVAL-recursion1.cmake create mode 100644 Tests/RunCMake/GenEx-GENEX_EVAL/GENEX_EVAL-recursion2-result.txt create mode 100644 Tests/RunCMake/GenEx-GENEX_EVAL/GENEX_EVAL-recursion2-stderr.txt create mode 100644 Tests/RunCMake/GenEx-GENEX_EVAL/GENEX_EVAL-recursion2.cmake create mode 100644 Tests/RunCMake/GenEx-GENEX_EVAL/GENEX_EVAL.cmake create mode 100644 Tests/RunCMake/GenEx-GENEX_EVAL/RunCMakeTest.cmake create mode 100644 Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-check.cmake create mode 100644 Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-no-arg-result.txt create mode 100644 Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-no-arg-stderr.txt create mode 100644 Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-no-arg.cmake create mode 100644 Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-no-target-result.txt create mode 100644 Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-no-target-stderr.txt create mode 100644 Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-no-target.cmake create mode 100644 Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-non-valid-target-result.txt create mode 100644 Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-non-valid-target-stderr.txt create mode 100644 Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-non-valid-target.cmake create mode 100644 Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-recursion1-result.txt create mode 100644 Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-recursion1-stderr.txt create mode 100644 Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-recursion1.cmake create mode 100644 Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-recursion2-result.txt create mode 100644 Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-recursion2-stderr.txt create mode 100644 Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-recursion2.cmake create mode 100644 Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL.cmake create mode 100644 Tests/RunCMake/GenEx-GENEX_EVAL/empty.c delete mode 100644 Tests/RunCMake/GeneratorExpression/GENEX_EVAL-check.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/GENEX_EVAL-recursion1-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/GENEX_EVAL-recursion1-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/GENEX_EVAL-recursion1.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/GENEX_EVAL-recursion2-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/GENEX_EVAL-recursion2-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/GENEX_EVAL-recursion2.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/GENEX_EVAL.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-check.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-no-arg-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-no-arg-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-no-arg.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-no-target-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-no-target-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-no-target.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-non-valid-target-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-non-valid-target-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-non-valid-target.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-recursion1-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-recursion1-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-recursion1.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-recursion2-result.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-recursion2-stderr.txt delete mode 100644 Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-recursion2.cmake delete mode 100644 Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL.cmake diff --git a/Tests/RunCMake/CMakeLists.txt b/Tests/RunCMake/CMakeLists.txt index 163bdf7..58a859f 100644 --- a/Tests/RunCMake/CMakeLists.txt +++ b/Tests/RunCMake/CMakeLists.txt @@ -228,6 +228,7 @@ add_RunCMake_test(GenEx-LINK_LANG_AND_ID) add_RunCMake_test(GenEx-HOST_LINK) add_RunCMake_test(GenEx-DEVICE_LINK) add_RunCMake_test(GenEx-TARGET_FILE -DLINKER_SUPPORTS_PDB=${LINKER_SUPPORTS_PDB}) +add_RunCMake_test(GenEx-GENEX_EVAL) add_RunCMake_test(GeneratorExpression) add_RunCMake_test(GeneratorInstance) add_RunCMake_test(GeneratorPlatform) diff --git a/Tests/RunCMake/GenEx-GENEX_EVAL/CMakeLists.txt b/Tests/RunCMake/GenEx-GENEX_EVAL/CMakeLists.txt new file mode 100644 index 0000000..44025d3 --- /dev/null +++ b/Tests/RunCMake/GenEx-GENEX_EVAL/CMakeLists.txt @@ -0,0 +1,3 @@ +cmake_minimum_required(VERSION 3.12) +project(${RunCMake_TEST} NONE) +include(${RunCMake_TEST}.cmake) diff --git a/Tests/RunCMake/GenEx-GENEX_EVAL/GENEX_EVAL-check.cmake b/Tests/RunCMake/GenEx-GENEX_EVAL/GENEX_EVAL-check.cmake new file mode 100644 index 0000000..df76740 --- /dev/null +++ b/Tests/RunCMake/GenEx-GENEX_EVAL/GENEX_EVAL-check.cmake @@ -0,0 +1,6 @@ +file(READ "${RunCMake_TEST_BINARY_DIR}/GENEX_EVAL-generated.txt" content) + +set(expected "BEFORE_PROPERTY1_AFTER") +if(NOT content STREQUAL expected) + set(RunCMake_TEST_FAILED "actual content:\n [[${content}]]\nbut expected:\n [[${expected}]]") +endif() diff --git a/Tests/RunCMake/GenEx-GENEX_EVAL/GENEX_EVAL-recursion1-result.txt b/Tests/RunCMake/GenEx-GENEX_EVAL/GENEX_EVAL-recursion1-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-GENEX_EVAL/GENEX_EVAL-recursion1-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-GENEX_EVAL/GENEX_EVAL-recursion1-stderr.txt b/Tests/RunCMake/GenEx-GENEX_EVAL/GENEX_EVAL-recursion1-stderr.txt new file mode 100644 index 0000000..012dff6 --- /dev/null +++ b/Tests/RunCMake/GenEx-GENEX_EVAL/GENEX_EVAL-recursion1-stderr.txt @@ -0,0 +1,26 @@ +^CMake Error at GENEX_EVAL-recursion1.cmake:7 \(add_custom_target\): + Error evaluating generator expression: + + \$> + + Dependency loop found. +Call Stack \(most recent call first\): + CMakeLists.txt:3 \(include\) + + +CMake Error at GENEX_EVAL-recursion1.cmake:7 \(add_custom_target\): + Loop step 1 + + \$> + +Call Stack \(most recent call first\): + CMakeLists.txt:3 \(include\) + + +CMake Error at GENEX_EVAL-recursion1.cmake:7 \(add_custom_target\): + Loop step 2 + + \$> + +Call Stack \(most recent call first\): + CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/GenEx-GENEX_EVAL/GENEX_EVAL-recursion1.cmake b/Tests/RunCMake/GenEx-GENEX_EVAL/GENEX_EVAL-recursion1.cmake new file mode 100644 index 0000000..6596a81 --- /dev/null +++ b/Tests/RunCMake/GenEx-GENEX_EVAL/GENEX_EVAL-recursion1.cmake @@ -0,0 +1,9 @@ + +enable_language(C) + +add_library (recursion SHARED empty.c) +set_property (TARGET recursion PROPERTY CUSTOM_PROPERTY "$>") + +add_custom_target (drive + COMMAND echo "$>" + DEPENDS recursion) diff --git a/Tests/RunCMake/GenEx-GENEX_EVAL/GENEX_EVAL-recursion2-result.txt b/Tests/RunCMake/GenEx-GENEX_EVAL/GENEX_EVAL-recursion2-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-GENEX_EVAL/GENEX_EVAL-recursion2-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-GENEX_EVAL/GENEX_EVAL-recursion2-stderr.txt b/Tests/RunCMake/GenEx-GENEX_EVAL/GENEX_EVAL-recursion2-stderr.txt new file mode 100644 index 0000000..ed68400 --- /dev/null +++ b/Tests/RunCMake/GenEx-GENEX_EVAL/GENEX_EVAL-recursion2-stderr.txt @@ -0,0 +1,26 @@ +^CMake Error at GENEX_EVAL-recursion2.cmake:8 \(add_custom_target\): + Error evaluating generator expression: + + \$> + + Dependency loop found. +Call Stack \(most recent call first\): + CMakeLists.txt:3 \(include\) + + +CMake Error at GENEX_EVAL-recursion2.cmake:8 \(add_custom_target\): + Loop step 1 + + \$> + +Call Stack \(most recent call first\): + CMakeLists.txt:3 \(include\) + + +CMake Error at GENEX_EVAL-recursion2.cmake:8 \(add_custom_target\): + Loop step 2 + + \$> + +Call Stack \(most recent call first\): + CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/GenEx-GENEX_EVAL/GENEX_EVAL-recursion2.cmake b/Tests/RunCMake/GenEx-GENEX_EVAL/GENEX_EVAL-recursion2.cmake new file mode 100644 index 0000000..773749f --- /dev/null +++ b/Tests/RunCMake/GenEx-GENEX_EVAL/GENEX_EVAL-recursion2.cmake @@ -0,0 +1,10 @@ + +enable_language(C) + +add_library(recursion SHARED empty.c) +set_property (TARGET recursion PROPERTY CUSTOM_PROPERTY1 "$>") +set_property (TARGET recursion PROPERTY CUSTOM_PROPERTY2 "$>") + +add_custom_target (drive + COMMAND echo "$>" + DEPENDS recursion) diff --git a/Tests/RunCMake/GenEx-GENEX_EVAL/GENEX_EVAL.cmake b/Tests/RunCMake/GenEx-GENEX_EVAL/GENEX_EVAL.cmake new file mode 100644 index 0000000..153cd17 --- /dev/null +++ b/Tests/RunCMake/GenEx-GENEX_EVAL/GENEX_EVAL.cmake @@ -0,0 +1,12 @@ + +cmake_policy(VERSION 3.11) + +enable_language(C) + +add_library (example SHARED empty.c) +set_property (TARGET example PROPERTY CUSTOM_PROPERTY1 "PROPERTY1") +set_property (TARGET example PROPERTY CUSTOM_PROPERTY2 "$") +set_property (TARGET example PROPERTY CUSTOM_PROPERTY3 "$_AFTER>") +set_property (TARGET example PROPERTY CUSTOM_PROPERTY4 "$>") + +file(GENERATE OUTPUT "GENEX_EVAL-generated.txt" CONTENT "$>") diff --git a/Tests/RunCMake/GenEx-GENEX_EVAL/RunCMakeTest.cmake b/Tests/RunCMake/GenEx-GENEX_EVAL/RunCMakeTest.cmake new file mode 100644 index 0000000..d804a56 --- /dev/null +++ b/Tests/RunCMake/GenEx-GENEX_EVAL/RunCMakeTest.cmake @@ -0,0 +1,11 @@ +include(RunCMake) + +run_cmake(TARGET_GENEX_EVAL-no-arg) +run_cmake(TARGET_GENEX_EVAL-no-target) +run_cmake(TARGET_GENEX_EVAL-non-valid-target) +run_cmake(TARGET_GENEX_EVAL-recursion1) +run_cmake(TARGET_GENEX_EVAL-recursion2) +run_cmake(TARGET_GENEX_EVAL) +run_cmake(GENEX_EVAL-recursion1) +run_cmake(GENEX_EVAL-recursion2) +run_cmake(GENEX_EVAL) diff --git a/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-check.cmake b/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-check.cmake new file mode 100644 index 0000000..124a583 --- /dev/null +++ b/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-check.cmake @@ -0,0 +1,6 @@ +file(READ "${RunCMake_TEST_BINARY_DIR}/TARGET_GENEX_EVAL-generated.txt" content) + +set(expected "BEFORE_PROPERTY1_AFTER") +if(NOT content STREQUAL expected) + set(RunCMake_TEST_FAILED "actual content:\n [[${content}]]\nbut expected:\n [[${expected}]]") +endif() diff --git a/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-no-arg-result.txt b/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-no-arg-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-no-arg-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-no-arg-stderr.txt b/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-no-arg-stderr.txt new file mode 100644 index 0000000..9b0844f --- /dev/null +++ b/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-no-arg-stderr.txt @@ -0,0 +1,9 @@ +^CMake Error at TARGET_GENEX_EVAL-no-arg.cmake:4 \(add_custom_command\): + Error evaluating generator expression: + + \$ + + \$ expression requires 2 comma separated parameters, but + got 1 instead. +Call Stack \(most recent call first\): + CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-no-arg.cmake b/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-no-arg.cmake new file mode 100644 index 0000000..2dc13ea --- /dev/null +++ b/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-no-arg.cmake @@ -0,0 +1,7 @@ + +cmake_policy(VERSION 3.11) + +add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/copied_file.c" + COMMAND "${CMAKE_COMMAND}" -E copy "${CMAKE_CURRENT_SOURCE_DIR}/empty.c" "${CMAKE_CURRENT_BINARY_DIR}/copied_file$.c" +) +add_custom_target(drive DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/copied_file.c") diff --git a/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-no-target-result.txt b/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-no-target-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-no-target-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-no-target-stderr.txt b/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-no-target-stderr.txt new file mode 100644 index 0000000..647fd85 --- /dev/null +++ b/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-no-target-stderr.txt @@ -0,0 +1,9 @@ +^CMake Error at TARGET_GENEX_EVAL-no-target.cmake:2 \(add_custom_command\): + Error evaluating generator expression: + + \$ + + \$ expression requires a non-empty valid target + name. +Call Stack \(most recent call first\): + CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-no-target.cmake b/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-no-target.cmake new file mode 100644 index 0000000..df4f0ea --- /dev/null +++ b/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-no-target.cmake @@ -0,0 +1,5 @@ + +add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/copied_file.c" + COMMAND "${CMAKE_COMMAND}" -E copy "${CMAKE_CURRENT_SOURCE_DIR}/empty.c" "${CMAKE_CURRENT_BINARY_DIR}/copied_file$.c" +) +add_custom_target(drive DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/copied_file.c") diff --git a/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-non-valid-target-result.txt b/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-non-valid-target-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-non-valid-target-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-non-valid-target-stderr.txt b/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-non-valid-target-stderr.txt new file mode 100644 index 0000000..cc44d4b --- /dev/null +++ b/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-non-valid-target-stderr.txt @@ -0,0 +1,8 @@ +^CMake Error at TARGET_GENEX_EVAL-non-valid-target.cmake:2 \(add_custom_command\): + Error evaluating generator expression: + + \$ + + \$ target "bad-target" not found. +Call Stack \(most recent call first\): + CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-non-valid-target.cmake b/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-non-valid-target.cmake new file mode 100644 index 0000000..8db7375 --- /dev/null +++ b/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-non-valid-target.cmake @@ -0,0 +1,5 @@ + +add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/copied_file.c" + COMMAND "${CMAKE_COMMAND}" -E copy "${CMAKE_CURRENT_SOURCE_DIR}/empty.c" "${CMAKE_CURRENT_BINARY_DIR}/copied_file$.c" +) +add_custom_target(drive DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/copied_file.c") diff --git a/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-recursion1-result.txt b/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-recursion1-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-recursion1-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-recursion1-stderr.txt b/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-recursion1-stderr.txt new file mode 100644 index 0000000..bba2234 --- /dev/null +++ b/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-recursion1-stderr.txt @@ -0,0 +1,9 @@ +^CMake Error at TARGET_GENEX_EVAL-recursion1.cmake:7 \(add_custom_target\): + Error evaluating generator expression: + + \$> + + Self reference on target "recursion". + +Call Stack \(most recent call first\): + CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-recursion1.cmake b/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-recursion1.cmake new file mode 100644 index 0000000..b75d211 --- /dev/null +++ b/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-recursion1.cmake @@ -0,0 +1,9 @@ + +enable_language(C) + +add_library (recursion SHARED empty.c) +set_property (TARGET recursion PROPERTY CUSTOM_PROPERTY "$>") + +add_custom_target (drive + COMMAND echo "$>" + DEPENDS recursion) diff --git a/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-recursion2-result.txt b/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-recursion2-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-recursion2-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-recursion2-stderr.txt b/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-recursion2-stderr.txt new file mode 100644 index 0000000..73f6b77 --- /dev/null +++ b/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-recursion2-stderr.txt @@ -0,0 +1,26 @@ +^CMake Error at TARGET_GENEX_EVAL-recursion2.cmake:10 \(add_custom_target\): + Error evaluating generator expression: + + \$> + + Dependency loop found. +Call Stack \(most recent call first\): + CMakeLists.txt:3 \(include\) + + +CMake Error at TARGET_GENEX_EVAL-recursion2.cmake:10 \(add_custom_target\): + Loop step 1 + + \$> + +Call Stack \(most recent call first\): + CMakeLists.txt:3 \(include\) + + +CMake Error at TARGET_GENEX_EVAL-recursion2.cmake:10 \(add_custom_target\): + Loop step 2 + + \$> + +Call Stack \(most recent call first\): + CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-recursion2.cmake b/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-recursion2.cmake new file mode 100644 index 0000000..a28dfc3 --- /dev/null +++ b/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-recursion2.cmake @@ -0,0 +1,12 @@ + +enable_language(C) + +add_library (recursion1 SHARED empty.c) +set_property (TARGET recursion1 PROPERTY CUSTOM_PROPERTY1 "$>") + +add_library (recursion2 SHARED empty.c) +set_property (TARGET recursion2 PROPERTY CUSTOM_PROPERTY2 "$>") + +add_custom_target (drive + COMMAND echo "$>" + DEPENDS recursion) diff --git a/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL.cmake b/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL.cmake new file mode 100644 index 0000000..68b3712 --- /dev/null +++ b/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL.cmake @@ -0,0 +1,10 @@ + +cmake_policy(VERSION 3.11) + +enable_language(C) + +add_library (example SHARED empty.c) +set_property (TARGET example PROPERTY CUSTOM_PROPERTY1 "PROPERTY1") +set_property (TARGET example PROPERTY CUSTOM_PROPERTY2 "BEFORE_$_AFTER") + +file(GENERATE OUTPUT "TARGET_GENEX_EVAL-generated.txt" CONTENT "$>") diff --git a/Tests/RunCMake/GenEx-GENEX_EVAL/empty.c b/Tests/RunCMake/GenEx-GENEX_EVAL/empty.c new file mode 100644 index 0000000..e69de29 diff --git a/Tests/RunCMake/GeneratorExpression/GENEX_EVAL-check.cmake b/Tests/RunCMake/GeneratorExpression/GENEX_EVAL-check.cmake deleted file mode 100644 index df76740..0000000 --- a/Tests/RunCMake/GeneratorExpression/GENEX_EVAL-check.cmake +++ /dev/null @@ -1,6 +0,0 @@ -file(READ "${RunCMake_TEST_BINARY_DIR}/GENEX_EVAL-generated.txt" content) - -set(expected "BEFORE_PROPERTY1_AFTER") -if(NOT content STREQUAL expected) - set(RunCMake_TEST_FAILED "actual content:\n [[${content}]]\nbut expected:\n [[${expected}]]") -endif() diff --git a/Tests/RunCMake/GeneratorExpression/GENEX_EVAL-recursion1-result.txt b/Tests/RunCMake/GeneratorExpression/GENEX_EVAL-recursion1-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/GENEX_EVAL-recursion1-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/GENEX_EVAL-recursion1-stderr.txt b/Tests/RunCMake/GeneratorExpression/GENEX_EVAL-recursion1-stderr.txt deleted file mode 100644 index 012dff6..0000000 --- a/Tests/RunCMake/GeneratorExpression/GENEX_EVAL-recursion1-stderr.txt +++ /dev/null @@ -1,26 +0,0 @@ -^CMake Error at GENEX_EVAL-recursion1.cmake:7 \(add_custom_target\): - Error evaluating generator expression: - - \$> - - Dependency loop found. -Call Stack \(most recent call first\): - CMakeLists.txt:3 \(include\) - - -CMake Error at GENEX_EVAL-recursion1.cmake:7 \(add_custom_target\): - Loop step 1 - - \$> - -Call Stack \(most recent call first\): - CMakeLists.txt:3 \(include\) - - -CMake Error at GENEX_EVAL-recursion1.cmake:7 \(add_custom_target\): - Loop step 2 - - \$> - -Call Stack \(most recent call first\): - CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/GeneratorExpression/GENEX_EVAL-recursion1.cmake b/Tests/RunCMake/GeneratorExpression/GENEX_EVAL-recursion1.cmake deleted file mode 100644 index 6596a81..0000000 --- a/Tests/RunCMake/GeneratorExpression/GENEX_EVAL-recursion1.cmake +++ /dev/null @@ -1,9 +0,0 @@ - -enable_language(C) - -add_library (recursion SHARED empty.c) -set_property (TARGET recursion PROPERTY CUSTOM_PROPERTY "$>") - -add_custom_target (drive - COMMAND echo "$>" - DEPENDS recursion) diff --git a/Tests/RunCMake/GeneratorExpression/GENEX_EVAL-recursion2-result.txt b/Tests/RunCMake/GeneratorExpression/GENEX_EVAL-recursion2-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/GENEX_EVAL-recursion2-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/GENEX_EVAL-recursion2-stderr.txt b/Tests/RunCMake/GeneratorExpression/GENEX_EVAL-recursion2-stderr.txt deleted file mode 100644 index ed68400..0000000 --- a/Tests/RunCMake/GeneratorExpression/GENEX_EVAL-recursion2-stderr.txt +++ /dev/null @@ -1,26 +0,0 @@ -^CMake Error at GENEX_EVAL-recursion2.cmake:8 \(add_custom_target\): - Error evaluating generator expression: - - \$> - - Dependency loop found. -Call Stack \(most recent call first\): - CMakeLists.txt:3 \(include\) - - -CMake Error at GENEX_EVAL-recursion2.cmake:8 \(add_custom_target\): - Loop step 1 - - \$> - -Call Stack \(most recent call first\): - CMakeLists.txt:3 \(include\) - - -CMake Error at GENEX_EVAL-recursion2.cmake:8 \(add_custom_target\): - Loop step 2 - - \$> - -Call Stack \(most recent call first\): - CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/GeneratorExpression/GENEX_EVAL-recursion2.cmake b/Tests/RunCMake/GeneratorExpression/GENEX_EVAL-recursion2.cmake deleted file mode 100644 index 773749f..0000000 --- a/Tests/RunCMake/GeneratorExpression/GENEX_EVAL-recursion2.cmake +++ /dev/null @@ -1,10 +0,0 @@ - -enable_language(C) - -add_library(recursion SHARED empty.c) -set_property (TARGET recursion PROPERTY CUSTOM_PROPERTY1 "$>") -set_property (TARGET recursion PROPERTY CUSTOM_PROPERTY2 "$>") - -add_custom_target (drive - COMMAND echo "$>" - DEPENDS recursion) diff --git a/Tests/RunCMake/GeneratorExpression/GENEX_EVAL.cmake b/Tests/RunCMake/GeneratorExpression/GENEX_EVAL.cmake deleted file mode 100644 index 153cd17..0000000 --- a/Tests/RunCMake/GeneratorExpression/GENEX_EVAL.cmake +++ /dev/null @@ -1,12 +0,0 @@ - -cmake_policy(VERSION 3.11) - -enable_language(C) - -add_library (example SHARED empty.c) -set_property (TARGET example PROPERTY CUSTOM_PROPERTY1 "PROPERTY1") -set_property (TARGET example PROPERTY CUSTOM_PROPERTY2 "$") -set_property (TARGET example PROPERTY CUSTOM_PROPERTY3 "$_AFTER>") -set_property (TARGET example PROPERTY CUSTOM_PROPERTY4 "$>") - -file(GENERATE OUTPUT "GENEX_EVAL-generated.txt" CONTENT "$>") diff --git a/Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake b/Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake index 927005e..0278cf6 100644 --- a/Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake +++ b/Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake @@ -34,15 +34,6 @@ run_cmake(TARGET_NAME_IF_EXISTS-no-arg) run_cmake(TARGET_NAME_IF_EXISTS-empty-arg) run_cmake(TARGET_NAME_IF_EXISTS) run_cmake(TARGET_NAME_IF_EXISTS-not-a-target) -run_cmake(TARGET_GENEX_EVAL-no-arg) -run_cmake(TARGET_GENEX_EVAL-no-target) -run_cmake(TARGET_GENEX_EVAL-non-valid-target) -run_cmake(TARGET_GENEX_EVAL-recursion1) -run_cmake(TARGET_GENEX_EVAL-recursion2) -run_cmake(TARGET_GENEX_EVAL) -run_cmake(GENEX_EVAL-recursion1) -run_cmake(GENEX_EVAL-recursion2) -run_cmake(GENEX_EVAL) run_cmake(REMOVE_DUPLICATES-empty) run_cmake(REMOVE_DUPLICATES-1) run_cmake(REMOVE_DUPLICATES-2) diff --git a/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-check.cmake b/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-check.cmake deleted file mode 100644 index 124a583..0000000 --- a/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-check.cmake +++ /dev/null @@ -1,6 +0,0 @@ -file(READ "${RunCMake_TEST_BINARY_DIR}/TARGET_GENEX_EVAL-generated.txt" content) - -set(expected "BEFORE_PROPERTY1_AFTER") -if(NOT content STREQUAL expected) - set(RunCMake_TEST_FAILED "actual content:\n [[${content}]]\nbut expected:\n [[${expected}]]") -endif() diff --git a/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-no-arg-result.txt b/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-no-arg-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-no-arg-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-no-arg-stderr.txt b/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-no-arg-stderr.txt deleted file mode 100644 index 9b0844f..0000000 --- a/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-no-arg-stderr.txt +++ /dev/null @@ -1,9 +0,0 @@ -^CMake Error at TARGET_GENEX_EVAL-no-arg.cmake:4 \(add_custom_command\): - Error evaluating generator expression: - - \$ - - \$ expression requires 2 comma separated parameters, but - got 1 instead. -Call Stack \(most recent call first\): - CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-no-arg.cmake b/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-no-arg.cmake deleted file mode 100644 index 2dc13ea..0000000 --- a/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-no-arg.cmake +++ /dev/null @@ -1,7 +0,0 @@ - -cmake_policy(VERSION 3.11) - -add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/copied_file.c" - COMMAND "${CMAKE_COMMAND}" -E copy "${CMAKE_CURRENT_SOURCE_DIR}/empty.c" "${CMAKE_CURRENT_BINARY_DIR}/copied_file$.c" -) -add_custom_target(drive DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/copied_file.c") diff --git a/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-no-target-result.txt b/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-no-target-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-no-target-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-no-target-stderr.txt b/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-no-target-stderr.txt deleted file mode 100644 index 647fd85..0000000 --- a/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-no-target-stderr.txt +++ /dev/null @@ -1,9 +0,0 @@ -^CMake Error at TARGET_GENEX_EVAL-no-target.cmake:2 \(add_custom_command\): - Error evaluating generator expression: - - \$ - - \$ expression requires a non-empty valid target - name. -Call Stack \(most recent call first\): - CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-no-target.cmake b/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-no-target.cmake deleted file mode 100644 index df4f0ea..0000000 --- a/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-no-target.cmake +++ /dev/null @@ -1,5 +0,0 @@ - -add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/copied_file.c" - COMMAND "${CMAKE_COMMAND}" -E copy "${CMAKE_CURRENT_SOURCE_DIR}/empty.c" "${CMAKE_CURRENT_BINARY_DIR}/copied_file$.c" -) -add_custom_target(drive DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/copied_file.c") diff --git a/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-non-valid-target-result.txt b/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-non-valid-target-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-non-valid-target-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-non-valid-target-stderr.txt b/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-non-valid-target-stderr.txt deleted file mode 100644 index cc44d4b..0000000 --- a/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-non-valid-target-stderr.txt +++ /dev/null @@ -1,8 +0,0 @@ -^CMake Error at TARGET_GENEX_EVAL-non-valid-target.cmake:2 \(add_custom_command\): - Error evaluating generator expression: - - \$ - - \$ target "bad-target" not found. -Call Stack \(most recent call first\): - CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-non-valid-target.cmake b/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-non-valid-target.cmake deleted file mode 100644 index 8db7375..0000000 --- a/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-non-valid-target.cmake +++ /dev/null @@ -1,5 +0,0 @@ - -add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/copied_file.c" - COMMAND "${CMAKE_COMMAND}" -E copy "${CMAKE_CURRENT_SOURCE_DIR}/empty.c" "${CMAKE_CURRENT_BINARY_DIR}/copied_file$.c" -) -add_custom_target(drive DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/copied_file.c") diff --git a/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-recursion1-result.txt b/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-recursion1-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-recursion1-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-recursion1-stderr.txt b/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-recursion1-stderr.txt deleted file mode 100644 index bba2234..0000000 --- a/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-recursion1-stderr.txt +++ /dev/null @@ -1,9 +0,0 @@ -^CMake Error at TARGET_GENEX_EVAL-recursion1.cmake:7 \(add_custom_target\): - Error evaluating generator expression: - - \$> - - Self reference on target "recursion". - -Call Stack \(most recent call first\): - CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-recursion1.cmake b/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-recursion1.cmake deleted file mode 100644 index b75d211..0000000 --- a/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-recursion1.cmake +++ /dev/null @@ -1,9 +0,0 @@ - -enable_language(C) - -add_library (recursion SHARED empty.c) -set_property (TARGET recursion PROPERTY CUSTOM_PROPERTY "$>") - -add_custom_target (drive - COMMAND echo "$>" - DEPENDS recursion) diff --git a/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-recursion2-result.txt b/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-recursion2-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-recursion2-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-recursion2-stderr.txt b/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-recursion2-stderr.txt deleted file mode 100644 index 73f6b77..0000000 --- a/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-recursion2-stderr.txt +++ /dev/null @@ -1,26 +0,0 @@ -^CMake Error at TARGET_GENEX_EVAL-recursion2.cmake:10 \(add_custom_target\): - Error evaluating generator expression: - - \$> - - Dependency loop found. -Call Stack \(most recent call first\): - CMakeLists.txt:3 \(include\) - - -CMake Error at TARGET_GENEX_EVAL-recursion2.cmake:10 \(add_custom_target\): - Loop step 1 - - \$> - -Call Stack \(most recent call first\): - CMakeLists.txt:3 \(include\) - - -CMake Error at TARGET_GENEX_EVAL-recursion2.cmake:10 \(add_custom_target\): - Loop step 2 - - \$> - -Call Stack \(most recent call first\): - CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-recursion2.cmake b/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-recursion2.cmake deleted file mode 100644 index a28dfc3..0000000 --- a/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-recursion2.cmake +++ /dev/null @@ -1,12 +0,0 @@ - -enable_language(C) - -add_library (recursion1 SHARED empty.c) -set_property (TARGET recursion1 PROPERTY CUSTOM_PROPERTY1 "$>") - -add_library (recursion2 SHARED empty.c) -set_property (TARGET recursion2 PROPERTY CUSTOM_PROPERTY2 "$>") - -add_custom_target (drive - COMMAND echo "$>" - DEPENDS recursion) diff --git a/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL.cmake b/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL.cmake deleted file mode 100644 index 68b3712..0000000 --- a/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL.cmake +++ /dev/null @@ -1,10 +0,0 @@ - -cmake_policy(VERSION 3.11) - -enable_language(C) - -add_library (example SHARED empty.c) -set_property (TARGET example PROPERTY CUSTOM_PROPERTY1 "PROPERTY1") -set_property (TARGET example PROPERTY CUSTOM_PROPERTY2 "BEFORE_$_AFTER") - -file(GENERATE OUTPUT "TARGET_GENEX_EVAL-generated.txt" CONTENT "$>") -- cgit v0.12