From 87cae490cd3b906b28fc068e317daebee5411b0d Mon Sep 17 00:00:00 2001 From: Sam Edwards Date: Sat, 8 Feb 2014 17:51:05 -0700 Subject: [PATCH] CMake: Only build 'direct' if BUILD_DIRECT is on. --- CMakeLists.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8c242ea016..d7ca1c4600 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,8 +26,9 @@ include(dtool/Package.cmake) include(dtool/Config.cmake) # Determine which trees to build. -option(BUILD_DTOOL "Build the dtool source tree." ON) -option(BUILD_PANDA "Build the panda source tree." ON) +option(BUILD_DTOOL "Build the dtool source tree." ON) +option(BUILD_PANDA "Build the panda source tree." ON) +option(BUILD_DIRECT "Build the direct source tree." ON) # Include Panda3D packages if(BUILD_DTOOL) @@ -38,4 +39,6 @@ if(BUILD_PANDA) add_subdirectory(panda) endif() -add_subdirectory(direct) +if(BUILD_DIRECT) + add_subdirectory(direct) +endif()