cmake/Tests/MacroTest/context.cmake

11 lines
282 B
CMake
Raw Normal View History

2009-05-01 17:43:35 +03:00
GET_CURRENT_FILE(current_file)
2013-03-16 19:13:01 +02:00
if(NOT "${current_file}" STREQUAL "${CMAKE_CURRENT_LIST_FILE}")
message(FATAL_ERROR
2009-05-01 17:43:35 +03:00
"Macro file context is broken. Expected:\n"
" ${CMAKE_CURRENT_LIST_FILE}\n"
"but got:\n"
" ${current_file}\n"
"from the macro."
)
2013-03-16 19:13:01 +02:00
endif()