Skip to content

Commit

Permalink
cmake: build static libraries with position independent code (#1219)
Browse files Browse the repository at this point in the history
  • Loading branch information
clementperon authored Oct 17, 2023
1 parent 2daeddb commit b19d842
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ option(PCAPPP_PACKAGE "Package Pcap++ could require a recent version of CMake" O
set(CMAKE_CXX_STANDARD 11)
# popen()/pclose() are not C++ standards
set(CMAKE_CXX_EXTENSIONS ON)
# Set Position Independent Code for static libraries
set(CMAKE_POSITION_INDEPENDENT_CODE ON)

# Usually on Windows PCAP_ROOT and Packet_ROOT are at the same location
if(WIN32
Expand Down

0 comments on commit b19d842

Please sign in to comment.