Commit 7ba44c33 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit

Fix build issue when VTK_ENABLE_KITS is ON.

This is temporary fix for build issues introduced by 42cd4ce4 when
VTK_ENABLE_KITS is ON. We are reverting to old behavior when
VTK_ENABLE_KITS is ON.
parent 66ea3751
Pipeline #2850 passed with stage
......@@ -11,7 +11,7 @@ macro(VTK_WRAP_HIERARCHY module_name OUTPUT_DIR SOURCES)
endif()
# collect the common wrapper-tool arguments
if(NOT CMAKE_VERSION VERSION_LESS 3.1)
if(NOT CMAKE_VERSION VERSION_LESS 3.1 AND NOT VTK_ENABLE_KITS)
# write wrapper-tool arguments to a file
set(_args_file ${module_name}Hierarchy.$<CONFIGURATION>.args)
file(GENERATE OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_args_file} CONTENT "
......
......@@ -41,7 +41,7 @@ macro(vtk_wrap_java3 TARGET SRC_LIST_NAME SOURCES)
set(_common_args "${_common_args}--types \"${KIT_HIERARCHY_FILE}\"\n")
endif()
if(NOT CMAKE_VERSION VERSION_LESS 3.1)
if(NOT CMAKE_VERSION VERSION_LESS 3.1 AND NOT VTK_ENABLE_KITS)
# write wrapper-tool arguments to a file
set(_args_file ${CMAKE_CURRENT_BINARY_DIR}/${TARGET}.$<CONFIGURATION>.args)
file(GENERATE OUTPUT ${_args_file} CONTENT "${_common_args}
......
......@@ -43,7 +43,7 @@ macro(VTK_WRAP_PYTHON3 TARGET SRC_LIST_NAME SOURCES)
set(_common_args "${_common_args}--types \"${KIT_HIERARCHY_FILE}\"\n")
endif()
if(NOT CMAKE_VERSION VERSION_LESS 3.1)
if(NOT CMAKE_VERSION VERSION_LESS 3.1 AND NOT VTK_ENABLE_KITS)
# write wrapper-tool arguments to a file
set(_args_file ${CMAKE_CURRENT_BINARY_DIR}/${TARGET}.$<CONFIGURATION>.args)
file(GENERATE OUTPUT ${_args_file} CONTENT "${_common_args}
......
......@@ -78,7 +78,7 @@ MACRO(VTK_WRAP_TCL3 TARGET SRC_LIST_NAME SOURCES COMMANDS)
set(_common_args "${_common_args}--types \"${KIT_HIERARCHY_FILE}\"\n")
endif()
if(NOT CMAKE_VERSION VERSION_LESS 3.1)
if(NOT CMAKE_VERSION VERSION_LESS 3.1 AND NOT VTK_ENABLE_KITS)
# write wrapper-tool arguments to a file
set(_args_file ${CMAKE_CURRENT_BINARY_DIR}/${TARGET}.$<CONFIGURATION>.args)
file(GENERATE OUTPUT ${_args_file} CONTENT "${_common_args}
......
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