Commit 6dbfa9c7 authored by Rohan Budhiraja's avatar Rohan Budhiraja
Browse files

[cmake] update linkings for shared library and python modules

parent 4e943de6
...@@ -39,6 +39,7 @@ TARGET_LINK_LIBRARIES(${LIBRARY_NAME} ...@@ -39,6 +39,7 @@ TARGET_LINK_LIBRARIES(${LIBRARY_NAME}
IF(UNIX) IF(UNIX)
TARGET_LINK_LIBRARIES(${LIBRARY_NAME} ${Boost_LIBRARIES}) TARGET_LINK_LIBRARIES(${LIBRARY_NAME} ${Boost_LIBRARIES})
TARGET_LINK_LIBRARIES(${LIBRARY_NAME} ${CMAKE_DL_LIBS})
ENDIF(UNIX) ENDIF(UNIX)
SET_TARGET_PROPERTIES(${LIBRARY_NAME} PROPERTIES SOVERSION ${PROJECT_VERSION}) SET_TARGET_PROPERTIES(${LIBRARY_NAME} PROPERTIES SOVERSION ${PROJECT_VERSION})
...@@ -79,7 +80,7 @@ SET_TARGET_PROPERTIES(${PYTHON_MODULE} ...@@ -79,7 +80,7 @@ SET_TARGET_PROPERTIES(${PYTHON_MODULE}
PROPERTIES PREFIX "") PROPERTIES PREFIX "")
PKG_CONFIG_USE_DEPENDENCY(${PYTHON_MODULE} dynamic-graph) PKG_CONFIG_USE_DEPENDENCY(${PYTHON_MODULE} dynamic-graph)
TARGET_LINK_LIBRARIES(${PYTHON_MODULE} ${PYTHON_LIBRARY}) #TARGET_LINK_LIBRARIES(${PYTHON_MODULE} ${PYTHON_LIBRARY})
CONFIG_FILES(link-to-python.hh) CONFIG_FILES(link-to-python.hh)
INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_PATH} INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_PATH}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment