Merge pull request #416 from tdsmith/python-exec-link

link ledger executable to Python on OS X
This commit is contained in:
Alexis Hildebrandt 2015-07-28 20:20:35 +02:00
commit 53cdde527d

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}