1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 02:08:27 +08:00

Tests: set CMAKE_PREFIX_PATH to the installation prefix

As it is documented to be.
This commit is contained in:
Ben Boeckel
2021-03-18 10:36:32 -04:00
parent 26cf661b64
commit e2aa44ba04

View File

@@ -1697,7 +1697,7 @@ if(BUILD_TESTING)
${build_generator_args}
--build-project ${import_name}
--build-options
"-DCMAKE_PREFIX_PATH:PATH=${install_dir}/lib/cmake")
"-DCMAKE_PREFIX_PATH:PATH=${install_dir}")
set_tests_properties(${import_test_name} PROPERTIES DEPENDS ${export_test_name})
list(APPEND TEST_BUILD_DIRS "${import_build_dir}")
endfunction()