diff options
author | Alex Turbov <i.zaufi@gmail.com> | 2022-07-04 01:45:23 (GMT) |
---|---|---|
committer | Alex Turbov <i.zaufi@gmail.com> | 2022-07-11 13:14:01 (GMT) |
commit | a08160685531d926774d4c994dbc76845e254aed (patch) | |
tree | de99304f25eb028a67bbd66f1ca37a6e1c9323cc /Tests/RunCMake/find_package/RunCMakeTest.cmake | |
parent | 6212038992d2bfcce8f1ab23b82711376aa03cbf (diff) | |
download | CMake-a08160685531d926774d4c994dbc76845e254aed.zip CMake-a08160685531d926774d4c994dbc76845e254aed.tar.gz CMake-a08160685531d926774d4c994dbc76845e254aed.tar.bz2 |
Tests: Add more find_package search path cases
Diffstat (limited to 'Tests/RunCMake/find_package/RunCMakeTest.cmake')
-rw-r--r-- | Tests/RunCMake/find_package/RunCMakeTest.cmake | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Tests/RunCMake/find_package/RunCMakeTest.cmake b/Tests/RunCMake/find_package/RunCMakeTest.cmake index 32e54d5..fa41fc1 100644 --- a/Tests/RunCMake/find_package/RunCMakeTest.cmake +++ b/Tests/RunCMake/find_package/RunCMakeTest.cmake @@ -55,6 +55,22 @@ run_cmake(REGISTRY_VIEW-no-view) run_cmake(REGISTRY_VIEW-wrong-view) run_cmake(REGISTRY_VIEW-propagated) +file( + GLOB SearchPaths_TEST_CASE_LIST + LIST_DIRECTORIES TRUE + "${RunCMake_SOURCE_DIR}/SearchPaths/*" + ) +foreach(TestCasePrefix IN LISTS SearchPaths_TEST_CASE_LIST) + if(IS_DIRECTORY "${TestCasePrefix}") + cmake_path(GET TestCasePrefix FILENAME TestSuffix) + run_cmake_with_options( + SearchPaths_${TestSuffix} + "-DSearchPaths_ROOT=${TestCasePrefix}" + "--debug-find-pkg=SearchPaths" + ) + endif() +endforeach() + if(UNIX AND NOT MSYS # FIXME: This works on CYGWIN but not on MSYS ) |