Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
gianlourbano authored Nov 30, 2024
1 parent 27e515b commit 69cc6aa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ target_link_libraries(vdesnmp PRIVATE vdecommon vdemgmt)
target_link_libraries(vdeplug PRIVATE vdecommon)
target_link_libraries(vdehist PRIVATE vdecommon)

target_compile_options(vdehist PRIVATE -Wall -O2 -g -O2 -fno-common -DPIC)
target_link_options(vdehist PRIVATE -Wl,-undefined -Wl,dynamic_lookup -Wl,-no_fixup_chains -Wl,-force_load -O2 -g -O2)
if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
target_compile_options(vdehist PRIVATE -Wall -O2 -g -O2 -fno-common -DPIC)
target_link_options(vdehist PRIVATE -Wl,-undefined -Wl,dynamic_lookup -Wl,-no_fixup_chains -Wl,-force_load -O2 -g -O2)
endif()

# Set version numbers and export symbols
set_target_properties(vdesnmp PROPERTIES VERSION 0.0.1 SOVERSION 0)
Expand Down

0 comments on commit 69cc6aa

Please sign in to comment.