Skip to content
Snippets Groups Projects
Commit fdbcf4c1 authored by Simon Oehrl's avatar Simon Oehrl
Browse files

Fix CMakeLists file

parent 4dd609b8
No related branches found
No related tags found
No related merge requests found
Pipeline #163424 passed
......@@ -284,7 +284,7 @@ if ( BUILD_SHARED_LIBS )
install( TARGETS ${MODULE_NAME}_module
DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
target_link_libraries(${MODULE_NAME}_module PRIVATE cpprestsdk::cpprest pqxx)
target_link_libraries(${MODULE_NAME}_module PRIVATE cpprestsdk::cpprest libpqxx::pqxx_shared)
endif ()
# Build dynamic/static library for standard linking from NEST.
......@@ -299,6 +299,7 @@ set_target_properties( ${MODULE_NAME}_lib
COMPILE_FLAGS "${NEST_CXXFLAGS}"
LINK_FLAGS "${NEST_LIBS}"
OUTPUT_NAME ${MODULE_NAME} )
target_link_libraries(${MODULE_NAME}_lib PRIVATE cpprestsdk::cpprest libpqxx::pqxx_shared)
# Install library, header and sli init files.
install( TARGETS ${MODULE_NAME}_lib DESTINATION ${CMAKE_INSTALL_LIBDIR} )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment