diff --git a/direct/CMakeLists.txt b/direct/CMakeLists.txt index 904bf6f9ae..28f09f3c8c 100644 --- a/direct/CMakeLists.txt +++ b/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)