CMakeLists.txt - fail if building bindings in non-release mode
This commit is contained in:
@@ -44,11 +44,9 @@ else()
|
||||
endif()
|
||||
|
||||
option(OPTION_DEVELOPER_MODE "Developer Mode" OFF)
|
||||
if(CMAKE_BUILD_TYPE MATCHES "^[Rr]el")
|
||||
option(OPTION_BUILD_PYTHON_BINDINGS "Build python bindings" OFF)
|
||||
else()
|
||||
message(WARNING "** Python Bindings are disabled in debug build mode.")
|
||||
set(OPTION_BUILD_PYTHON_BINDINGS False)
|
||||
option(OPTION_BUILD_PYTHON_BINDINGS "Build python bindings" OFF)
|
||||
if(OPTION_BUILD_PYTHON_BINDINGS AND NOT CMAKE_BUILD_TYPE MATCHES "^[Rr]el")
|
||||
message(FATAL_ERROR "** Python Bindings can only be built in release build mode.")
|
||||
endif()
|
||||
option(${PROJECT_NAME}_TESTS "Build the tests" OFF)
|
||||
option(${PROJECT_NAME}_EXAMPLES "Build the examples" ON)
|
||||
|
||||
Reference in New Issue
Block a user