Commit 9d09ec6f authored by Bill Hoffman's avatar Bill Hoffman
Browse files

ENH: make it a fatal error in cmake if the loaded commands can not be...

ENH: make it a fatal error in cmake if the loaded commands can not be compiled, so cmake does not report that Unknown CMake Command "VTK_MAKE_INSTANTIATOR2" for all errors of this type.
parent 9ae87a2e
......@@ -10,10 +10,11 @@ MACRO(VTK_COMPILE_CMAKE_EXTENSIONS source_dir build_dir result_var)
TRY_COMPILE("${result_var}" "${build_dir}" "${source_dir}"
VTK_LOADED_COMMANDS
OUTPUT_VARIABLE VTK_COMPILE_CMAKE_EXTENSIONS_OUTPUT)
SET(${result_var} 0)
IF("${result_var}")
MESSAGE(STATUS "Compiling VTK CMake commands - done")
ELSE("${result_var}")
MESSAGE(STATUS "Compiling VTK CMake commands - failed")
MESSAGE(FATAL_ERROR "Compiling VTK CMake commands - failed")
MESSAGE("Failed to compile VTK extensions to CMake")
WRITE_FILE(${CMAKE_BINARY_DIR}/CMakeError.log
"Building of VTK extensions failed with the following output:\n"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment