File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -753,7 +753,9 @@ OPTION(BUILD_OSG_PLUGINS "Build OSG Plugins - Disable for compile testing exampl
753753mark_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 )
758760ENDIF ()
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 ()
769771ELSE ()
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 )
You can’t perform that action at this time.
0 commit comments