summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/find_package/IgnorePath.cmake
blob: f40549b155409bb58dc340c91b8d337942cbe446 (plain)
1
2
3
4
5
6
7
8
9
10
11
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()