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:
Matt Williams 2012-07-20 22:09:58 +01:00
parent 30b45114ac
commit 830623800c

View File

@ -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)