Browse Source

CMake: 'direct' depends on 'panda'

Sam Edwards 12 years ago
parent
commit
e2a03d6435
1 changed files with 4 additions and 0 deletions
  1. 4 0
      direct/CMakeLists.txt

+ 4 - 0
direct/CMakeLists.txt

@@ -1,3 +1,7 @@
+if(NOT BUILD_PANDA)
+  message(FATAL_ERROR "Cannot build direct without panda!  Please enable the BUILD_PANDA option.")
+endif()
+
 # Include source directories which have C++ components:
 add_subdirectory(src/directbase)
 add_subdirectory(src/autorestart)