Skip to content

Commit 711d69d

Browse files
Merge pull request #1037 from glebm/3rd-party-deps
CMakeLists.txt: OSG_FIND_3RD_PARTY_DEPS option
2 parents 2415a8d + df0c312 commit 711d69d

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

CMakeLists.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,9 @@ OPTION(BUILD_OSG_PLUGINS "Build OSG Plugins - Disable for compile testing exampl
753753
mark_as_advanced(BUILD_OSG_PLUGINS)
754754
################################################################################
755755
# 3rd Party Dependency Stuff
756-
IF(WIN32 AND NOT ANDROID)
756+
OPTION(OSG_FIND_3RD_PARTY_DEPS "Enable to search for Android or Windows dependencies in ./3rdparty" ON)
757+
758+
IF(WIN32 AND NOT ANDROID AND OSG_FIND_3RD_PARTY_DEPS)
757759
INCLUDE(Find3rdPartyDependencies)
758760
ENDIF()
759761

@@ -764,7 +766,7 @@ OPTION(OSG_USE_LOCAL_LUA_SOURCE "Enable to use local Lua source when building th
764766
# you can use the following style of command line option when invoking Cmake (here illustrating ignoring PythonLibs) :
765767
# cmake -DCMAKE_DISABLE_FIND_PACKAGE_PythonLibs=1 .
766768
#
767-
IF(ANDROID)
769+
IF(ANDROID AND OSG_FIND_3RD_PARTY_DEPS)
768770
ANDROID_3RD_PARTY()
769771
ELSE()
770772
# Common to all platforms except android:
@@ -840,7 +842,7 @@ ENDIF()
840842

841843
# Image readers/writers depend on 3rd party libraries except for OS X which
842844
# can use Quicktime.
843-
IF(NOT ANDROID)
845+
IF(NOT (ANDROID AND OSG_FIND_3RD_PARTY_DEPS))
844846
IF(NOT APPLE)
845847
FIND_PACKAGE(GIFLIB)
846848
FIND_PACKAGE(JPEG)

0 commit comments

Comments
 (0)