Add dependencies to SWIG bindings
Due to the hack in which we enable the building of both static and shared libraries CMake's automatic dependency sorting isn't working. Manually specifying the dependency seems to solve the problem of components building out of order.
This commit is contained in:
parent
4916b5952b
commit
5d93eef5ac
@ -19,6 +19,13 @@ if(ENABLE_BINDINGS)
|
|||||||
swig_add_module(PolyVoxCore python PolyVoxCore.i)
|
swig_add_module(PolyVoxCore python PolyVoxCore.i)
|
||||||
swig_link_libraries(PolyVoxCore ${PYTHON_LIBRARIES} PolyVoxCore)
|
swig_link_libraries(PolyVoxCore ${PYTHON_LIBRARIES} PolyVoxCore)
|
||||||
#set_target_properties(${SWIG_MODULE_PolyVoxCore_REAL_NAME} PROPERTIES SUFFIX ".pyd")
|
#set_target_properties(${SWIG_MODULE_PolyVoxCore_REAL_NAME} PROPERTIES SUFFIX ".pyd")
|
||||||
|
|
||||||
|
if(ENABLE_STATIC_LIBRARIES)
|
||||||
|
ADD_DEPENDENCIES(${SWIG_MODULE_PolyVoxCore_REAL_NAME} PolyVoxCoreStatic PolyVoxUtilStatic)
|
||||||
|
endif()
|
||||||
|
if(ENABLE_DYNAMIC_LIBRARIES)
|
||||||
|
ADD_DEPENDENCIES(${SWIG_MODULE_PolyVoxCore_REAL_NAME} PolyVoxCoreDynamic PolyVoxUtilDynamic)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
set(BUILD_BINDINGS OFF CACHE BOOL "Will the bindings be built" FORCE)
|
set(BUILD_BINDINGS OFF CACHE BOOL "Will the bindings be built" FORCE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user