2.12.2021, 9:00 - 11:00: Due to updates GitLab may be unavailable for some minutes between 09:00 and 11:00.

Commit 59e4f6c7 authored by Artur Grunau's avatar Artur Grunau
Browse files

Work around a bug in SWIG_ADD_MODULE

There's a bug in SWIG_ADD_MODULE that breaks out-of-tree builds by not
creating wrapper output directories:
http://www.cmake.org/Bug/view.php?id=14459

Manually create missing directories for the time being to fix the
problem.

References #1
parent 382d1c52
......@@ -49,6 +49,13 @@ FOREACH(ModName ${CampvisModules})
ENDIF(CAMPVIS_BUILD_MODULE_${ModNameUpper})
ENDFOREACH(ModName ${CampvisModules})
# Hack-fix for a bug in SWIG_ADD_MODULE that breaks out-of-tree builds by not creating wrapper
# output directories.
# TODO: remove once http://www.cmake.org/Bug/view.php?id=14459 lands
FOREACH(BindingDir ${CampvisBindingDirs})
FILE(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/${BindingDir}/bindings")
ENDFOREACH(BindingDir ${CampvisBindingDirs})
# Declare a Lua module to be generated by SWIG from the specified interface file
MACRO(DECLARE_LUA_MODULE InterfaceFile)
......
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