diff options
-rw-r--r-- | CMakeLists.txt | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 63dacc12..aa8594e4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -273,8 +273,10 @@ endif (NOT HAVE_EDIT) ######################################################################## macro(add_ledger_library_dependencies _target) - target_link_libraries(${_target} ${MPFR_LIB}) + target_link_libraries(${_target} ${Boost_LIBRARIES}) target_link_libraries(${_target} ${GMP_LIB}) + target_link_libraries(${_target} ${MPFR_LIB}) + target_link_libraries(${_target} ${PROFILE_LIBS}) if (HAVE_EDIT) target_link_libraries(${_target} ${EDIT_LIB}) endif() @@ -287,22 +289,18 @@ macro(add_ledger_library_dependencies _target) if (HAVE_GPGME) target_link_libraries(${_target} Gpgmepp) endif() + if (HAVE_BOOST_REGEX_UNICODE) + target_link_libraries(${_target} ${ICU_LIBRARIES}) + endif() if (HAVE_BOOST_PYTHON) if (CMAKE_SYSTEM_NAME STREQUAL Darwin) # Don't link directly to a Python framework on macOS, to avoid segfaults # when the module is imported from a different interpreter - target_link_libraries(${_target} ${Boost_LIBRARIES}) set_target_properties(${_target} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup") else() - target_link_libraries(${_target} ${Boost_LIBRARIES} ${Python_LIBRARIES}) + target_link_libraries(${_target} ${Python_LIBRARIES}) endif() - else() - target_link_libraries(${_target} ${Boost_LIBRARIES}) endif() - if (HAVE_BOOST_REGEX_UNICODE) - target_link_libraries(${_target} ${ICU_LIBRARIES}) - endif() - target_link_libraries(${_target} ${PROFILE_LIBS}) endmacro(add_ledger_library_dependencies _target) ######################################################################## |