-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
bld.bat
38 lines (33 loc) · 991 Bytes
/
bld.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
setlocal EnableDelayedExpansion
mkdir build
cd build
set "CC=clang-cl.exe"
set "CXX=clang-cl.exe"
set "CL=/MP"
:: Configure
:: Turn OpenMP OFF because of https://github.com/stack-of-tasks/pinocchio/issues/2440
cmake ^
-G Ninja ^
-DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^
-DCMAKE_BUILD_TYPE=Release ^
-DPYTHON_SITELIB=%SP_DIR% ^
-DPYTHON_EXECUTABLE=%PYTHON% ^
-DBUILD_PYTHON_INTERFACE=ON ^
-DGENERATE_PYTHON_STUBS=ON ^
-DBUILD_WITH_COLLISION_SUPPORT=ON ^
-DBUILD_WITH_CASADI_SUPPORT=ON ^
-DBUILD_WITH_AUTODIFF_SUPPORT=OFF ^
-DBUILD_WITH_CODEGEN_SUPPORT=OFF ^
-DBUILD_WITH_EXTRA_SUPPORT=ON ^
-DBUILD_WITH_OPENMP_SUPPORT=OFF ^
-DBUILD_WITH_SDF_SUPPORT=ON ^
-DBUILD_PYTHON_BINDINGS_WITH_BOOST_MPFR_SUPPORT=OFF ^
-DBUILD_TESTING=OFF ^
%SRC_DIR%
if errorlevel 1 exit 1
:: Build.
cmake --build . --config Release -j2
if errorlevel 1 exit 1
:: Install.
cmake --build . --config Release --target install
if errorlevel 1 exit 1