summarylogtreecommitdiffstats
path: root/osgearth_optional_fastdxt.patch
blob: 4a42185f6c21ec9f81efdec2a0c45a7ba4b5782f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- a/src/osgEarthDrivers/CMakeLists.txt
+++ b/src/osgEarthDrivers/CMakeLists.txt
@@ -30,8 +30,11 @@
 
 add_subdirectory(cache_rocksdb)
 
+OPTION(DISABLE_FASTDXT "Disale fastdxt build" OFF)
 if(NOT APPLE AND NOT ANDROID)
-    add_subdirectory(fastdxt)
+    if(NOT DISABLE_FASTDXT)
+        add_subdirectory(fastdxt)
+    endif()
     if(NOT BUILDING_VCPKG_PORT)
         add_subdirectory(lerc)
     endif()