-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy pathBuildcasadi.cmake
43 lines (37 loc) · 1.79 KB
/
Buildcasadi.cmake
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
39
40
41
42
# Copyright (C) 2020 iCub Facility, Istituto Italiano di Tecnologia
# Authors: Giulio Romualdi <[email protected]>
# CopyPolicy: Released under the terms of the LGPLv2.1 or later, see LGPL.TXT
include(YCMEPHelper)
include(FindOrBuildPackage)
find_or_build_package(osqp QUIET)
if(MSVC AND ROBOTOLOGY_USES_PYTHON)
set(WITH_COPYSIGN_UNDEF ON)
else()
set(WITH_COPYSIGN_UNDEF OFF)
endif()
ycm_ep_helper(casadi TYPE GIT
STYLE GITHUB
REPOSITORY dic-iit/casadi.git
TAG support_osqp_0.6.2
COMPONENT external
FOLDER src
CMAKE_ARGS -DWITH_IPOPT:BOOL=ON
-DWITH_OSQP:BOOL=ON
-DWITH_EXAMPLES:BOOL=OFF
-DUSE_SYSTEM_WISE_OSQP:BOOL=ON
-DINCLUDE_PREFIX:PATH=include
-DCMAKE_PREFIX:PATH=lib/cmake/casadi
-DLIB_PREFIX:PATH=lib
-DBIN_PREFIX:PATH=bin
-DWITH_PYTHON:BOOL=${ROBOTOLOGY_USES_PYTHON}
-DWITH_PYTHON3:BOOL=${ROBOTOLOGY_USES_PYTHON}
-DWITH_COPYSIGN_UNDEF:BOOL=${WITH_COPYSIGN_UNDEF}
-DPYTHON_PREFIX:PATH=${ROBOTOLOGY_SUPERBUILD_PYTHON_INSTALL_DIR}
DEPENDS osqp)
set(casadi_CONDA_PKG_NAME casadi)
set(casadi_CONDA_PKG_CONDA_FORGE_OVERRIDE ON)
# This is a small hack. To avoid incompatibilities between the version tagged in the ami-iit fork
# (something like 3.5.5.x) and the version available in conda-forge when generating conda metapackages
# such as robotology-distro and robotology-distro-all, we override the conda package version of casadi
# here. This needs to be removed as soon as we stop use our fork in the superbuild
set(casadi_CONDA_VERSION 3.5.5)