Skip to content

Commit

Permalink
Default SOTH to OFF, export compile definition to let downstream pkgs…
Browse files Browse the repository at this point in the history
… know
  • Loading branch information
alaurenzi committed Jan 26, 2023
1 parent b953556 commit 0745db5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,17 @@ set(OPENSOT_SOLVERS_SOURCES src/solvers/BackEnd.cpp
src/solvers/eHQP.cpp
src/solvers/l1HQP.cpp)

option(OPENSOT_SOTH_FRONT_END "Add to compilation soth and HCOD front-end" TRUE)
option(OPENSOT_SOTH_FRONT_END "Add to compilation soth and HCOD front-end" OFF)
if(${OPENSOT_SOTH_FRONT_END})
message("Internal soth will be used!")
add_subdirectory(external/soth-ext/)
include_directories(external/soth-ext/include)
message("Adding src/solvers/HCOD.cpp to compilation")
set(OPENSOT_SOLVERS_SOURCES ${OPENSOT_SOLVERS_SOURCES} src/solvers/HCOD.cpp)
set(PRIVATE_TLL hcod_wrapper soth)
target_compile_definitions(OpenSoT
PUBLIC
-DOPENSOT_HAS_SOTH_FRONT_END)
endif()


Expand Down

0 comments on commit 0745db5

Please sign in to comment.