Skip to content

Commit c46585e

Browse files
committed
cont : set -fPIC for httplib
1 parent f02db01 commit c46585e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

vendor/cpp-httplib/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ else()
1414
target_compile_options(${TARGET} PRIVATE -w)
1515
endif()
1616

17+
if (BUILD_SHARED_LIBS)
18+
set_target_properties(${TARGET} PROPERTIES POSITION_INDEPENDENT_CODE ON)
19+
endif()
20+
1721
target_link_libraries(${TARGET} PRIVATE Threads::Threads)
1822

1923
if (WIN32 AND NOT MSVC)

0 commit comments

Comments
 (0)