We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f02db01 commit c46585eCopy full SHA for c46585e
1 file changed
vendor/cpp-httplib/CMakeLists.txt
@@ -14,6 +14,10 @@ else()
14
target_compile_options(${TARGET} PRIVATE -w)
15
endif()
16
17
+if (BUILD_SHARED_LIBS)
18
+ set_target_properties(${TARGET} PROPERTIES POSITION_INDEPENDENT_CODE ON)
19
+endif()
20
+
21
target_link_libraries(${TARGET} PRIVATE Threads::Threads)
22
23
if (WIN32 AND NOT MSVC)
0 commit comments