https://github.com/Kitware/CMake
Raw File
Tip revision: 43ddc6403227cc749916d47dd9f6c634f1aa4cc1 authored by Brad King on 15 September 2020, 12:11:59 UTC
CMake 3.16.9
Tip revision: 43ddc64
context.cmake
GET_CURRENT_FILE(current_file)
if(NOT "${current_file}" STREQUAL "${CMAKE_CURRENT_LIST_FILE}")
  message(FATAL_ERROR
    "Macro file context is broken.  Expected:\n"
    "  ${CMAKE_CURRENT_LIST_FILE}\n"
    "but got:\n"
    "  ${current_file}\n"
    "from the macro."
    )
endif()
back to top