Skip to content
Snippets Groups Projects
Unverified Commit 4d577e27 authored by Guilhem Saurel's avatar Guilhem Saurel Committed by GitHub
Browse files

Merge pull request #42 from costashatz/master

Respect BUILD_SHARED_LIBS
parents 2b993411 dbd6fdd4
No related branches found
No related tags found
No related merge requests found
Pipeline #32904 passed
......@@ -27,6 +27,7 @@ set(PROJECT_URL "https://github.com/${PROJECT_ORG}/${PROJECT_NAME}")
# Project options
option(TRACE_SOLVER "trace solver on stderr" OFF)
option(BUILD_SHARED_LIBS "Build shared libraries" ON)
# Project configuration
set(PROJECT_USE_CMAKE_EXPORT TRUE)
......@@ -56,7 +57,7 @@ set(${PROJECT_NAME}_HEADERS
include/${PROJECT_NAME}/eiquadprog-rt.hxx
include/${PROJECT_NAME}/eiquadprog-utils.hxx)
add_library(${PROJECT_NAME} SHARED src/eiquadprog-fast.cpp src/eiquadprog.cpp)
add_library(${PROJECT_NAME} src/eiquadprog-fast.cpp src/eiquadprog.cpp)
target_compile_options(${PROJECT_NAME} PRIVATE "-Wno-sign-conversion"
)# We have a lot of implicit size_t to Eigen::Index conversions
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment