CMakeLists.txt - Python bindings are not supported in Unity builds
fixes #284
(cherry-picked from commit c6ce421432)
This commit is contained in:
@@ -336,8 +336,10 @@ if(KDDockWidgets_PYTHON_BINDINGS)
|
||||
if(CMAKE_BUILD_TYPE MATCHES "^[Dd]eb" OR KDDockWidgets_STATIC)
|
||||
message(FATAL_ERROR "** Python Bindings are disabled in debug or static builds.")
|
||||
endif()
|
||||
endif()
|
||||
if(KDDockWidgets_PYTHON_BINDINGS)
|
||||
if(CMAKE_UNITY_BUILD)
|
||||
message(FATAL_ERROR "** Python Bindings are disabled in Unity builds. "
|
||||
"Try again with CMAKE_UNITY_BUILD=OFF")
|
||||
endif()
|
||||
add_subdirectory(python)
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user