Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions vinca/templates/bld_ament_cmake.bat.in
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ cmake ^
-DPYTHON_INSTALL_DIR=%PYTHON_INSTALL_DIR% ^
@(additional_cmake_args) ^
%SRC_DIR%\%PKG_NAME%\src\work\@(additional_folder)
if errorlevel 1 exit 1
if %errorlevel% neq 0 exit 1

:: We explicitly pass %CPU_COUNT% to cmake --build as we are not using Ninja,
:: see the comment before setting the CMAKE_GENERATOR env variable
cmake --build . --config Release --parallel %CPU_COUNT% --target install
if errorlevel 1 exit 1
if %errorlevel% neq 0 exit 1
2 changes: 1 addition & 1 deletion vinca/templates/bld_ament_python.bat.in
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ if "%errorlevel%" == "0" (
--install-scripts=%LIBRARY_PREFIX%\bin
)

if errorlevel 1 exit 1
if %errorlevel% neq 0 exit 1
21 changes: 8 additions & 13 deletions vinca/templates/bld_catkin.bat.in
Original file line number Diff line number Diff line change
Expand Up @@ -44,23 +44,18 @@ cmake ^
-DCATKIN_SKIP_TESTING=%SKIP_TESTING% ^
@(additional_cmake_args) ^
%SRC_DIR%\%PKG_NAME%\src\work\@(additional_folder)
if errorlevel 1 exit 1
if %errorlevel% neq 0 exit 1

if "%PKG_NAME%" == "@(ros_package_prefix)-eigenpy" (
cmake --build . --config Release --target all --parallel 1
if errorlevel 1 exit 1
) else (
cmake --build . --config Release --target all
if errorlevel 1 exit 1
)
set "BUILD_PARALLEL_ARGS="
if "%PKG_NAME%" == "@(ros_package_prefix)-eigenpy" set "BUILD_PARALLEL_ARGS=--parallel 1"
cmake --build . --config Release --target all %BUILD_PARALLEL_ARGS%
if %errorlevel% neq 0 exit 1

if "%SKIP_TESTING%" == "OFF" (
cmake --build . --config Release --target run_tests
if errorlevel 1 exit 1
)
if "%SKIP_TESTING%" == "OFF" cmake --build . --config Release --target run_tests
if %errorlevel% neq 0 exit 1

cmake --build . --config Release --target install
if errorlevel 1 exit 1
if %errorlevel% neq 0 exit 1

if "%PKG_NAME%" == "@(ros_package_prefix)-catkin" (
:: Copy the [de]activate scripts to %PREFIX%\etc\conda\[de]activate.d.
Expand Down
2 changes: 1 addition & 1 deletion vinca/templates/bld_catkin_merge.bat.in
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ set CMAKE_PREFIX_PATH=%CMAKE_PREFIX_PATH:\=/%
-DBUILD_SHARED_LIBS=ON ^
-DPYTHON_EXECUTABLE=%PYTHON% ^
-DCATKIN_SKIP_TESTING=ON
if errorlevel 1 exit 1
if %errorlevel% neq 0 exit 1

:: Copy the [de]activate scripts to %PREFIX%\etc\conda\[de]activate.d.
:: This will allow them to be run on environment activation.
Expand Down
2 changes: 1 addition & 1 deletion vinca/templates/bld_colcon_merge.bat.in
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ colcon build ^
-DBUILD_TESTING=OFF ^
-DPYTHON_INSTALL_DIR=%PYTHON_INSTALL_DIR% ^
-DPYTHON_EXECUTABLE=%PYTHON%
if errorlevel 1 exit 1
if %errorlevel% neq 0 exit 1

:: Copy the [de]activate scripts to %PREFIX%\etc\conda\[de]activate.d.
:: This will allow them to be run on environment activation.
Expand Down
Loading