Преглед на файлове

Do not build Urho3DPlayer when none of the script subsystem is enabled.
Fix #1224.

Yao Wei Tjong 姚伟忠 преди 9 години
родител
ревизия
64dcd0e41a
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      Source/Tools/CMakeLists.txt

+ 2 - 1
Source/Tools/CMakeLists.txt

@@ -28,7 +28,8 @@ find_package (Urho3D REQUIRED)
 include_directories (${URHO3D_INCLUDE_DIRS})
 
 # Urho3DPlayer target is rather special, although it is here, it is not a tool because it is built into target platform binary as opposed to host platform
-if (NOT WEB)
+if (NOT WEB AND (URHO3D_ANGELSCRIPT OR URHO3D_LUA${JIT}))
+    # Add Urho3DPlayer as target only when one of the supported scripting subystems is enabled
     add_subdirectory (Urho3DPlayer)
 endif ()