From 94061aa9fb57b6242650a877434819cd5342b35a Mon Sep 17 00:00:00 2001 From: scrawl Date: Tue, 7 Feb 2017 19:30:21 +0100 Subject: [PATCH] Add CMake option to not build deprecated serializers --- src/CMakeLists.txt | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 97a015d8a..d121eb00d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -26,15 +26,16 @@ FOREACH( mylibfolder osgTerrain osgWidget osgPresentation + osgWrappers/serializers + osgPlugins ) ADD_SUBDIRECTORY(${mylibfolder}) ENDFOREACH() -IF(BUILD_OSG_PLUGINS) - ADD_SUBDIRECTORY(osgWrappers/serializers) - ADD_SUBDIRECTORY(osgWrappers/deprecated-dotosg) - ADD_SUBDIRECTORY(osgPlugins) -ENDIF(BUILD_OSG_PLUGINS) +OPTION(BUILD_OSG_DEPRECATED_SERIALIZERS "Build deprecated .osg serializers" ON) +if(BUILD_OSG_DEPRECATED_SERIALIZERS) + ADD_SUBDIRECTORY(osgWrappers/deprecated-dotosg) +endif()