Browse Source

CMake: Disable pandatool on iOS by default

There's no reason to build it since all of these tools will be used on a host machine.
Donny Lawrence 6 years ago
parent
commit
12f8e3559a
1 changed files with 4 additions and 0 deletions
  1. 4 0
      CMakeLists.txt

+ 4 - 0
CMakeLists.txt

@@ -58,6 +58,10 @@ option(BUILD_PANDATOOL "Build the pandatool source tree." ON)
 option(BUILD_CONTRIB "Build the contrib source tree." ON)
 option(BUILD_MODELS "Build/install the built-in models." ON)
 
+if(CMAKE_SYSTEM_NAME STREQUAL iOS)
+  set(BUILD_PANDATOOL OFF)
+endif()
+
 # Include Panda3D packages
 if(BUILD_DTOOL)
   add_subdirectory(dtool "${CMAKE_BINARY_DIR}/dtool")