Browse Source

Fix to ensure 'bin' dir in build tree exists before symlink creation.

Yao Wei Tjong 姚伟忠 10 years ago
parent
commit
92b2d9c23e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      CMake/Modules/Urho3D-CMake-common.cmake

+ 2 - 0
CMake/Modules/Urho3D-CMake-common.cmake

@@ -1705,6 +1705,8 @@ elseif (EMSCRIPTEN)
         file (WRITE ${CMAKE_BINARY_DIR}/Source/shell.html "${SHELL_HTML}")
     endif ()
 else ()
+    # Ensure the output directory exist before creating the symlinks
+    file (MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
     # Create symbolic links in the build tree
     foreach (I CoreData Data)
         if (NOT EXISTS ${CMAKE_BINARY_DIR}/bin/${I})