pineapple-src/externals/vcpkg/ports/osg/disable-present3d-staticview-in-linux.patch
2022-07-23 03:01:36 +02:00

36 lines
1 KiB
Diff
Executable file

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()