blob: 88bf08c2d8564efdba2d8c1abd1467f997f02cba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
foreach (command IN ITEMS "function" "ENDFUNCTION"
"macro" "endMACRO"
"if" "elseif" "else" "endif"
"while" "endwhile"
"foreach" "endforeach")
execute_process(COMMAND "${CMAKE_COMMAND}" -DCOMMAND=${command}
-P "${CMAKE_CURRENT_SOURCE_DIR}/CallInvalidCommand.cmake"
OUTPUT_QUIET ERROR_QUIET
RESULT_VARIABLE result)
if (NOT result)
message (SEND_ERROR "cmake_language(CALL ${command}) unexpectedly successfull.")
endif()
endforeach()
|