IgnorePath.cmake 402 B

123456789101112
  1. set(CMAKE_PREFIX_PATH
  2. ${CMAKE_SOURCE_DIR}/PackageRoot/foo/cmake_root
  3. ${CMAKE_SOURCE_DIR}/PackageRoot/foo/env_root
  4. )
  5. set(CMAKE_IGNORE_PATH
  6. ${CMAKE_SOURCE_DIR}/PackageRoot//foo/cmake_root// # Test double slashes
  7. ${CMAKE_SOURCE_DIR}/PackageRoot/foo/env_root/cmake
  8. )
  9. find_package(Bar QUIET CONFIG)
  10. if(Bar_FOUND)
  11. message(FATAL_ERROR "Bar should not be found, was found in ${Bar_DIR}")
  12. endif()