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:
parent
ec10d51115
commit
1fa89aa3e4
@ -392,8 +392,8 @@ include(Source/CMakeVersion.cmake)
|
|||||||
include(CTest)
|
include(CTest)
|
||||||
|
|
||||||
# Set up test-time configuration.
|
# Set up test-time configuration.
|
||||||
set_directory_properties(PROPERTIES
|
set_property(DIRECTORY APPEND PROPERTY
|
||||||
TEST_INCLUDE_FILE "${CMake_BINARY_DIR}/Tests/EnforceConfig.cmake")
|
TEST_INCLUDE_FILES "${CMake_BINARY_DIR}/Tests/EnforceConfig.cmake")
|
||||||
|
|
||||||
if(NOT CMake_TEST_EXTERNAL_CMAKE)
|
if(NOT CMake_TEST_EXTERNAL_CMAKE)
|
||||||
# where to write the resulting executables and libraries
|
# where to write the resulting executables and libraries
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
include(CTest)
|
include(CTest)
|
||||||
add_test(NAME "unreachable" COMMAND ${CMAKE_COMMAND} -E true)
|
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")
|
||||||
|
Loading…
Reference in New Issue
Block a user