瀏覽代碼

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})
 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
 # 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)
     add_subdirectory (Urho3DPlayer)
 endif ()
 endif ()