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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user