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)
|
if(CMAKE_BUILD_TYPE MATCHES "^[Dd]eb" OR KDDockWidgets_STATIC)
|
||||||
message(FATAL_ERROR "** Python Bindings are disabled in debug or static builds.")
|
message(FATAL_ERROR "** Python Bindings are disabled in debug or static builds.")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
if(CMAKE_UNITY_BUILD)
|
||||||
if(KDDockWidgets_PYTHON_BINDINGS)
|
message(FATAL_ERROR "** Python Bindings are disabled in Unity builds. "
|
||||||
|
"Try again with CMAKE_UNITY_BUILD=OFF")
|
||||||
|
endif()
|
||||||
add_subdirectory(python)
|
add_subdirectory(python)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user