From Jean-Sebastien Guay, "I added a simple setting in OSG's CMakeLists.txt to be able to disable building anything related to Qt. It just skips the FindPackage(...) for Qt3 and Qt4, so since they are not found nothing related to Qt will be generated by CMake. The default is to build the Qt related stuff, so current behavior is unchanged."
This commit is contained in:
parent
698a284da8
commit
c35fdf7333
@ -479,7 +479,9 @@ ENDIF()
|
||||
# Include macro utilities here
|
||||
INCLUDE(OsgMacroUtils)
|
||||
|
||||
IF(NOT ANDROID)
|
||||
OPTION(OSG_USE_QT "Enable to use Qt (build Qt-dependent libraries, plugins and examples)" ON)
|
||||
|
||||
IF(OSG_USE_QT AND NOT ANDROID)
|
||||
# To select a specific version of QT define DESIRED_QT_VERSION
|
||||
# via cmake -DDESIRED_QT_VERSION=4
|
||||
IF (DESIRED_QT_VERSION)
|
||||
@ -499,7 +501,8 @@ IF(NOT ANDROID)
|
||||
ENDIF()
|
||||
|
||||
ENDIF()
|
||||
ENDIF(NOT ANDROID)
|
||||
ENDIF()
|
||||
|
||||
#optional example related dependencies
|
||||
IF (BUILD_OSG_EXAMPLES AND NOT ANDROID)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user