CMake: [skip ci] add build option to let the user decide to link with shiboken/PySide at build time

This commit is contained in:
wmayer
2020-06-10 10:18:47 +02:00
parent f80a78cf64
commit 5ffb62d8c5
2 changed files with 9 additions and 2 deletions

View File

@@ -171,7 +171,7 @@ IF(OCULUS_FOUND)
)
ENDIF(OCULUS_FOUND)
if(SHIBOKEN_INCLUDE_DIR)
if(FREECAD_USE_SHIBOKEN)
if (BUILD_QT5)
add_definitions(-DHAVE_SHIBOKEN2)
else()
@@ -191,7 +191,7 @@ if(SHIBOKEN_INCLUDE_DIR)
)
endif (TARGET Shiboken2::libshiboken)
endif (SHIBOKEN_LIBRARY)
endif(SHIBOKEN_INCLUDE_DIR)
endif(FREECAD_USE_SHIBOKEN)
if(PYSIDE_INCLUDE_DIR)
include_directories(