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.
This commit is contained in:
Tim D. Smith 2015-05-09 20:01:32 -07:00
parent c586e1e494
commit 249527c985

View file

@ -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}