From 000b19b358db4386cc501028f131f288f619fe79 Mon Sep 17 00:00:00 2001 From: hikmetba-bit Date: Wed, 16 Sep 2026 19:40:19 +0300 Subject: [PATCH] Fix ocio.bat: create build/install directories if missing Without --configure, cmake -B never runs, so BUILD_PATH and INSTALL_PATH are never created. The subsequent cmake --build, cmake --install, and ctest steps then fail with errors like "C:/TEMP/OCIO/build/Release is not a directory". Explicitly create both directories after they are resolved, regardless of whether --configure was passed. Fixes #2031 Co-Authored-By: Claude Sonnet 5 --- share/dev/windows/ocio.bat | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/share/dev/windows/ocio.bat b/share/dev/windows/ocio.bat index df0d1a81dc..b08eb14d7b 100644 --- a/share/dev/windows/ocio.bat +++ b/share/dev/windows/ocio.bat @@ -145,6 +145,13 @@ rem Update build and install variables set BUILD_PATH=!BUILD_PATH!\!CMAKE_BUILD_TYPE! set INSTALL_PATH=!INSTALL_PATH!\!CMAKE_BUILD_TYPE! +rem Create build and install directories if they don't already exist. +rem Without --configure, cmake -B never runs, so these would otherwise +rem never get created and the later cmake --build/--install/ctest steps +rem would fail with "is not a directory". +if NOT EXIST "!BUILD_PATH!" mkdir "!BUILD_PATH!" +if NOT EXIST "!INSTALL_PATH!" mkdir "!INSTALL_PATH!" + rem **************************************************************************************************************** rem Setting up the environment using MS Visual Studio batch script set VCVARS64_PATH="!MSVS_PATH!\VC\Auxiliary\Build\vcvars64.bat"