Commit 72f0abe8 authored by Yunus Sevinchan's avatar Yunus Sevinchan
Browse files

Merge branch '371-fix-yaml-cpp-linker-error' into 'master'

Draft: Resolve "Linker error on macOS with yaml-cpp>=0.8"

Closes #371

See merge request utopia-project/utopia!307
parents 6a51c1fe 4921b442
Loading
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -75,15 +75,20 @@ target_include_directories(utopia INTERFACE
#       linked *first* such that their include directories are searched first.
target_link_libraries(utopia INTERFACE
    spdlog::spdlog
    yaml-cpp
    Threads::Threads # NOTE: required by spdlog on Ubuntu 18.04
    armadillo
    Boost::boost
    Boost::graph
    Boost::regex
    hdf5
    yaml-cpp
)

# To find the yaml-cpp library during linking, it needs to be included
# separately ... for whatever reason.
# This was not necessary for yaml-cpp < 0.8, but became necessary afterwards.
target_link_directories(utopia INTERFACE ${YAML_CPP_LIBRARY_DIR})

# Set preprocessor definitions
target_compile_definitions(utopia INTERFACE
    # Enable HDF5 functions of Armadillo