Skip to content

Commit

Permalink
-fpic
Browse files Browse the repository at this point in the history
  • Loading branch information
markaren committed Oct 19, 2024
1 parent c456f99 commit 9de41de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,13 @@ endforeach ()

add_library(simple_socket "${publicHeadersFull}" "${privateHeaders}" "${sources}")
target_compile_features(simple_socket PUBLIC "cxx_std_20")

if (UNIX)
set_target_properties(simple_socket PROPERTIES POSITION_INDEPENDENT_CODE ON)
endif ()
if (WIN32)
target_link_libraries(simple_socket "ws2_32")
endif ()


target_include_directories(simple_socket
PUBLIC
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include>"
Expand Down

0 comments on commit 9de41de

Please sign in to comment.