Skip to content

Commit

Permalink
Fix for compilation issue with PIC when linking with BPMPD
Browse files Browse the repository at this point in the history
  • Loading branch information
cedriclmenard committed Mar 26, 2021
1 parent 9c634c0 commit 9715868
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sco/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if (HAVE_BPMPD)
set(BPMPD_LIBRARY "${CMAKE_SOURCE_DIR}/3rdpartylib/bpmpd_linux32.a")
endif()

target_link_libraries(bpmpd_caller ${BPMPD_LIBRARY})
target_link_libraries(bpmpd_caller ${BPMPD_LIBRARY} -static)
list(APPEND SCO_SOURCE_FILES bpmpd_interface.cpp)
set_property(SOURCE bpmpd_interface.cpp APPEND PROPERTY COMPILE_DEFINITIONS BPMPD_CALLER="\\\"${CMAKE_BINARY_DIR}/bin/bpmpd_caller\\\"")

Expand Down

0 comments on commit 9715868

Please sign in to comment.