Skip to content

Commit 65f211c

Browse files
create VINCA_CUSTOM_CMAKE_BUILD_DIR directory if not exists (#116)
1 parent 6fe2364 commit 65f211c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

vinca/templates/bld_ament_cmake.bat.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ set CXX=cl.exe
1111
:: If defined, can use a custom CMake build directory which can be useful
1212
:: to avoid too long path problems on windows
1313
if defined VINCA_CUSTOM_CMAKE_BUILD_DIR (
14+
if not exist "%VINCA_CUSTOM_CMAKE_BUILD_DIR%\" (
15+
mkdir "%VINCA_CUSTOM_CMAKE_BUILD_DIR%"
16+
)
1417
cd /d "%VINCA_CUSTOM_CMAKE_BUILD_DIR%"
1518
)
1619
rd /s /q build

vinca/templates/build_ament_cmake.sh.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
set -eo pipefail
55

66
if [[ -n "$VINCA_CUSTOM_CMAKE_BUILD_DIR" ]]; then
7+
mkdir -p "$VINCA_CUSTOM_CMAKE_BUILD_DIR"
78
cd "$VINCA_CUSTOM_CMAKE_BUILD_DIR"
89
fi
910
rm -rf build

0 commit comments

Comments
 (0)