Set BUILD_BINDINGS to OFF correctly
When ENABLE_BINDINGS is true but SWIG or Python isn't found, correctly set BUILD_BINDINGS to OFF rather than leaving it blank.
This commit is contained in:
parent
30b45114ac
commit
830623800c
@ -20,6 +20,8 @@ if(ENABLE_BINDINGS)
|
||||
swig_add_module(PolyVoxCore python PolyVoxCore.i)
|
||||
swig_link_libraries(PolyVoxCore ${PYTHON_LIBRARIES} PolyVoxCore)
|
||||
#set_target_properties(${SWIG_MODULE_PolyVoxCore_REAL_NAME} PROPERTIES SUFFIX ".pyd")
|
||||
else()
|
||||
set(BUILD_BINDINGS OFF CACHE BOOL "Will the bindings be built" FORCE)
|
||||
endif()
|
||||
else()
|
||||
set(BUILD_BINDINGS OFF CACHE BOOL "Will the bindings be built" FORCE)
|
||||
|
Loading…
x
Reference in New Issue
Block a user