From 249527c985a9580a5a17ceab8f4488b855a8569c Mon Sep 17 00:00:00 2001 From: "Tim D. Smith" Date: Sat, 9 May 2015 20:01:32 -0700 Subject: link ledger executable to Python Since the ledger executable embeds the Python interpreter, it does need an explicit link to a Python framework on OS X after all. --- src/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/CMakeLists.txt') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a368d378..570a6592 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -273,6 +273,9 @@ if (BUILD_LIBRARY) add_executable(ledger main.cc global.cc) target_link_libraries(ledger libledger) + if (APPLE AND HAVE_BOOST_PYTHON) + target_link_libraries(ledger ${PYTHON_LIBRARIES}) + endif() install(TARGETS libledger DESTINATION ${CMAKE_INSTALL_LIBDIR}) install(FILES ${LEDGER_INCLUDES} -- cgit v1.2.3