From 7a032baaa303c9c7a23322912f8c7d891cb02e5c Mon Sep 17 00:00:00 2001 From: Koncord Date: Thu, 5 Jul 2018 21:08:41 +0800 Subject: [PATCH] [General] Move OSG hack to ELSE branch --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6ee344625..3bc240d91 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -209,7 +209,6 @@ endif() IF(BUILD_OPENMW OR BUILD_OPENCS) find_package(OpenSceneGraph 3.3.4 REQUIRED osgDB osgViewer osgText osgGA osgParticle osgUtil osgFX) - include_directories(${OPENSCENEGRAPH_INCLUDE_DIRS}) set(USED_OSG_PLUGINS osgdb_bmp @@ -250,7 +249,8 @@ IF(BUILD_OPENMW OR BUILD_OPENCS) find_package(SDL2 REQUIRED) find_package(OpenAL REQUIRED) find_package(Bullet ${REQUIRED_BULLET_VERSION} REQUIRED COMPONENTS BulletCollision LinearMath) - +ELSE() + include_directories(${OPENSCENEGRAPH_INCLUDE_DIRS}) # HACK: DO NOT MOVE IT. Used for server only build ENDIF(BUILD_OPENMW OR BUILD_OPENCS)