You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
341 B
11 lines
341 B
16 years ago
|
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(NOT "${current_file}" STREQUAL "${CMAKE_CURRENT_LIST_FILE}")
|