Skip to content

Commit

Permalink
add build flag for vcpkg
Browse files Browse the repository at this point in the history
  • Loading branch information
ju6ge committed Sep 28, 2021
1 parent 1157de0 commit a2e5428
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ OPTION (RBDL_BUILD_ADDON_MUSCLE_FITTING "Build muscle library fitting functions
OPTION (RBDL_BUILD_EXECUTABLES "Build addon executables, disable this if you only want to build the libraries." ON)
OPTION (RBDL_USE_PYTHON_2 "Use python 2 instead of python 3" OFF)
OPTION (RBDL_USE_CASADI_MATH "Use the CasADi backend" OFF)
OPTION (RBDL_VCPKG_BUILD "Building RBDL in vcpkg environment" OFF)


# Find and use the system's Eigen3 library
Expand Down Expand Up @@ -237,7 +238,7 @@ INSTALL (
)

# Prepare share
if(WIN32 AND NOT CYGWIN)
if(WIN32 AND NOT CYGWIN AND NOT RBDL_VCPKG_BUILD)
set(CMAKE_SHARE_DIR cmake)
else()
set(CMAKE_SHARE_DIR lib/cmake/RBDL)
Expand Down

0 comments on commit a2e5428

Please sign in to comment.