TEST_INCLUDE_FILE: Replace with TEST_INCLUDE_FILES

The TEST_INCLUDE_FILE directory property got deprecated in CMake 3.10
and TEST_INCLUDE_FILES should be used instead.
This commit is contained in:
Peter Kokot 2025-03-24 14:20:27 +01:00
parent ec10d51115
commit 1fa89aa3e4
No known key found for this signature in database
GPG Key ID: A94800907AA79B36
2 changed files with 3 additions and 3 deletions

View File

@ -392,8 +392,8 @@ include(Source/CMakeVersion.cmake)
include(CTest)
# Set up test-time configuration.
set_directory_properties(PROPERTIES
TEST_INCLUDE_FILE "${CMake_BINARY_DIR}/Tests/EnforceConfig.cmake")
set_property(DIRECTORY APPEND PROPERTY
TEST_INCLUDE_FILES "${CMake_BINARY_DIR}/Tests/EnforceConfig.cmake")
if(NOT CMake_TEST_EXTERNAL_CMAKE)
# where to write the resulting executables and libraries

View File

@ -1,3 +1,3 @@
include(CTest)
add_test(NAME "unreachable" COMMAND ${CMAKE_COMMAND} -E true)
set_property(DIRECTORY PROPERTY TEST_INCLUDE_FILE ${CMAKE_CURRENT_SOURCE_DIR}/TestfileErrors-Script.cmake)
set_property(DIRECTORY APPEND PROPERTY TEST_INCLUDE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/TestfileErrors-Script.cmake")