Skip to content

Commit 6785f5e

Browse files
committed
use VS generator for mimick-vendor package
1 parent 96bf948 commit 6785f5e

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

vinca/templates/bld_ament_cmake.bat.in

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
:: Generated by vinca http://github.com/ros-forge/vinca.
22
:: DO NOT EDIT!
3-
setlocal
3+
setlocal EnableDelayedExpansion
4+
45
set "PYTHONPATH=%LIBRARY_PREFIX%\lib\site-packages;%SP_DIR%"
56

67
:: MSVC is preferred.
@@ -11,8 +12,14 @@ rd /s /q build
1112
mkdir build
1213
pushd build
1314

15+
set "CMAKE_GENERATOR=Ninja"
16+
17+
if "%PKG_NAME%" == "ros-@(ros_distro)-mimick-vendor" (
18+
set "CMAKE_GENERATOR=Visual Studio %VS_MAJOR% %VS_YEAR% Win64"
19+
)
20+
1421
cmake ^
15-
-G "Ninja" ^
22+
-G "%CMAKE_GENERATOR%" ^
1623
-DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^
1724
-DCMAKE_BUILD_TYPE=Release ^
1825
-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=True ^

0 commit comments

Comments
 (0)