aboutsummaryrefslogtreecommitdiff
path: root/ports/osg/disable-present3d-staticview-in-linux.patch
blob: fd76db35bb59b692fc218719e36542c235308f5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
diff --git a/applications/CMakeLists.txt b/applications/CMakeLists.txt
index ab491c6..bee3d1f 100644
--- a/applications/CMakeLists.txt
+++ b/applications/CMakeLists.txt
@@ -32,12 +32,16 @@ IF(DYNAMIC_OPENSCENEGRAPH)
     ADD_SUBDIRECTORY(osgconv)
     ADD_SUBDIRECTORY(osgfilecache)
     ADD_SUBDIRECTORY(osgversion)
-    ADD_SUBDIRECTORY(present3D)
+    if (NOT UNIX)
+        ADD_SUBDIRECTORY(present3D)
+    endif()
 ELSE()
     # need to define this on win32 or linker cries about _declspecs
     ADD_DEFINITIONS(-DOSG_LIBRARY_STATIC)
 
     ADD_SUBDIRECTORY(osgversion)
-    ADD_SUBDIRECTORY(present3D)
+    if (NOT UNIX)
+        ADD_SUBDIRECTORY(present3D)
+    endif()
 ENDIF()
 
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index 788e507..3c550bc 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -245,7 +245,7 @@ ELSE(DYNAMIC_OPENSCENEGRAPH)
 
     IF(OSG_BUILD_PLATFORM_IPHONE)
         ADD_SUBDIRECTORY(osgviewerIPhone)
-    ELSE()
+    ELSEIF (NOT UNIX)
         ADD_SUBDIRECTORY(osgstaticviewer)
     ENDIF()