diff options
author | Tim D. Smith <git@tim-smith.us> | 2015-05-09 20:01:32 -0700 |
---|---|---|
committer | Tim D. Smith <git@tim-smith.us> | 2015-05-09 20:01:32 -0700 |
commit | 249527c985a9580a5a17ceab8f4488b855a8569c (patch) | |
tree | b7e3340a3142be0f3a868aae8c3d48fc2e104adf /src/CMakeLists.txt | |
parent | c586e1e494487c43cf6da886739f69bb91a7e15b (diff) | |
download | fork-ledger-249527c985a9580a5a17ceab8f4488b855a8569c.tar.gz fork-ledger-249527c985a9580a5a17ceab8f4488b855a8569c.tar.bz2 fork-ledger-249527c985a9580a5a17ceab8f4488b855a8569c.zip |
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.
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
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} |