Skip to content

Commit

Permalink
Merge pull request #27 from AaltoML/move-yaml-outside-slam-flag
Browse files Browse the repository at this point in the history
Always yaml-cpp regardless of USE_SLAM flag
  • Loading branch information
Bercon authored Apr 6, 2021
2 parents a1418f2 + 905ed23 commit 0316924
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@ if [[ $TARGET_ARCHITECTURE == "host" ]]; then
source $SCRIPT_DIR/loguru/build.sh
fi

source $SCRIPT_DIR/yaml-cpp.sh

if [[ $USE_SLAM == "ON" ]]; then
source $SCRIPT_DIR/yaml-cpp.sh
if [[ -z $IOS_CROSS_COMPILING_HACKS && $OPENBLAS == "ON" ]]; then
# iOS uses Accelerate framework instead.
source $SCRIPT_DIR/openblas.sh
Expand Down
2 changes: 1 addition & 1 deletion scripts/mobile-cv-suite-config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ set(_MCS_CORE_INTERFACE_LIBS
# --- static
${_MCS_LIBS}/libtheia.a
${_MCS_LIBS}/libaccelerated-arrays.a
${_MCS_LIBS}/libyaml-cpp.a
)

# --- opencv
Expand Down Expand Up @@ -84,7 +85,6 @@ if (_MCS_USE_SLAM)
${_MCS_LIBS}/libg2o_types_slam2d_addons.a
${_MCS_LIBS}/libg2o_types_slam3d.a
${_MCS_LIBS}/libg2o_types_slam3d_addons.a
${_MCS_LIBS}/libyaml-cpp.a
# --- shared
# libbtf and cxsparse are LGPL licensed, so they must be used as shared libraries
${_MCS_LIBS}/libbtf${CMAKE_SHARED_LIBRARY_SUFFIX}
Expand Down

0 comments on commit 0316924

Please sign in to comment.