浏览代码

Fix cross-compiling build due to incorrect CMake conditional check.
Related to commit f9158a045e277691913e8a0e162475694a4b5377.

Yao Wei Tjong 姚伟忠 11 年之前
父节点
当前提交
69fdf1edfb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      CMake/Modules/Urho3D-CMake-common.cmake

+ 1 - 1
CMake/Modules/Urho3D-CMake-common.cmake

@@ -668,7 +668,7 @@ macro (setup_executable)
         add_custom_command (TARGET ${TARGET_NAME} POST_BUILD COMMAND scp $<TARGET_FILE:${TARGET_NAME}> ${URHO3D_SCP_TO_TARGET} || exit 0
             COMMENT "Scp-ing ${TARGET_NAME} executable to target system")
     endif ()
-    if (DEST_RUNTIME_DIR AND DEST_BUNDLE_DIR)
+    if (DEST_RUNTIME_DIR)
         # Need to check if the destination variable is defined first because this macro could be called by external project that does not wish to install anything
         install (TARGETS ${TARGET_NAME} RUNTIME DESTINATION ${DEST_RUNTIME_DIR} BUNDLE DESTINATION ${DEST_BUNDLE_DIR})
     endif ()