ProjectCMP0126.cmake 414 B

1234567891011
  1. cmake_policy(SET CMP0126 NEW)
  2. set(example_SOURCE_DIR "bad/path")
  3. set(example_BINARY_DIR "bad/path")
  4. project(example LANGUAGES)
  5. if(NOT "${example_SOURCE_DIR}" STREQUAL "${PROJECT_SOURCE_DIR}")
  6. message(FATAL_ERROR "example_SOURCE_DIR not set to expected value")
  7. endif()
  8. if(NOT "${example_BINARY_DIR}" STREQUAL "${PROJECT_BINARY_DIR}")
  9. message(FATAL_ERROR "example_BINARY_DIR not set to expected value")
  10. endif()