CMakeLists.txt - Python bindings are not supported in Unity builds

fixes #284
This commit is contained in:
Allen Winter
2022-04-08 08:42:06 -04:00
parent 1f638d2c7a
commit c6ce421432

View File

@@ -284,6 +284,10 @@ if(${PROJECT_NAME}_PYTHON_BINDINGS)
if(CMAKE_BUILD_TYPE MATCHES "^[Dd]eb" OR ${PROJECT_NAME}_STATIC)
message(FATAL_ERROR "** Python Bindings are disabled in debug or static builds.")
endif()
if(CMAKE_UNITY_BUILD)
message(FATAL_ERROR "** Python Bindings are disabled in Unity builds. "
"Try again with CMAKE_UNITY_BUILD=OFF")
endif()
endif()
if(${PROJECT_NAME}_PYTHON_BINDINGS)
add_subdirectory(python)