summaryrefslogtreecommitdiffstats
path: root/Tests/ExternalProject/Step1Patch.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/ExternalProject/Step1Patch.cmake')
-rw-r--r--Tests/ExternalProject/Step1Patch.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/ExternalProject/Step1Patch.cmake b/Tests/ExternalProject/Step1Patch.cmake
index 1a1920a..35e09d9 100644
--- a/Tests/ExternalProject/Step1Patch.cmake
+++ b/Tests/ExternalProject/Step1Patch.cmake
@@ -17,5 +17,9 @@ endif()
file(APPEND CMakeLists.txt "
# Patch by ExternalProject test:
set_property(TARGET Tutorial PROPERTY OUTPUT_NAME EP-Tutorial)
+list(LENGTH TEST_LIST len)
+if(NOT len EQUAL 3)
+ message(FATAL_ERROR \"TEST_LIST length is \${len}, not 3\")
+endif()
")
message(STATUS "Patched ${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt")