Commit 4beff992 authored by jcfr's avatar jcfr
Browse files

COMP: vtkMacroKitPythonWrap - Improve error message

git-svn-id: http://svn.slicer.org/Slicer4/trunk@16474 3bd1e089-480b-0410-8dfb-8563597acbee
parent 62a564c6
......@@ -35,9 +35,9 @@ MACRO(vtkMacroKitPythonWrap)
ENDIF()
ENDFOREACH()
SET(expected_nonempty_vars MY_KIT_NAME MY_KIT_INSTALL_BIN_DIR MY_KIT_INSTALL_LIB_DIR)
SET(expected_nonempty_vars KIT_NAME KIT_INSTALL_BIN_DIR KIT_INSTALL_LIB_DIR)
FOREACH(var ${expected_nonempty_vars})
IF("${${var}}" STREQUAL "")
IF("${MY_${var}}" STREQUAL "")
MESSAGE(FATAL_ERROR "error: ${var} CMake variable is empty !")
ENDIF()
ENDFOREACH()
......
Markdown is supported
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