mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 14:19:59 -05:00
find_package(): Add tests for CMAKE_IGNORE_PATH
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
set(CMAKE_PREFIX_PATH
|
||||
${CMAKE_SOURCE_DIR}/PackageRoot/foo/cmake_root
|
||||
${CMAKE_SOURCE_DIR}/PackageRoot/foo/env_root
|
||||
)
|
||||
set(CMAKE_IGNORE_PATH
|
||||
${CMAKE_SOURCE_DIR}/PackageRoot//foo/cmake_root// # Test double slashes
|
||||
${CMAKE_SOURCE_DIR}/PackageRoot/foo/env_root/cmake
|
||||
)
|
||||
find_package(Bar QUIET CONFIG)
|
||||
if(Bar_FOUND)
|
||||
message(FATAL_ERROR "Bar should not be found, was found in ${Bar_DIR}")
|
||||
endif()
|
||||
@@ -44,6 +44,7 @@ run_cmake(VersionRangeConfig2)
|
||||
run_cmake(VersionRangeConfig02)
|
||||
run_cmake(VersionRangeConfigStd)
|
||||
run_cmake(VersionRangeConfigStd2)
|
||||
run_cmake(IgnorePath)
|
||||
if(UNIX
|
||||
AND NOT MSYS # FIXME: This works on CYGWIN but not on MSYS
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user