Bladeren bron

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

Yao Wei Tjong 姚伟忠 10 jaren geleden
bovenliggende
commit
92b2d9c23e
1 gewijzigde bestanden met toevoegingen van 2 en 0 verwijderingen
  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}")
         file (WRITE ${CMAKE_BINARY_DIR}/Source/shell.html "${SHELL_HTML}")
     endif ()
     endif ()
 else ()
 else ()
+    # Ensure the output directory exist before creating the symlinks
+    file (MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
     # Create symbolic links in the build tree
     # Create symbolic links in the build tree
     foreach (I CoreData Data)
     foreach (I CoreData Data)
         if (NOT EXISTS ${CMAKE_BINARY_DIR}/bin/${I})
         if (NOT EXISTS ${CMAKE_BINARY_DIR}/bin/${I})