Skip to content

Commit c679907

Browse files
committed
Fix x86_64 build
1 parent 6a01687 commit c679907

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ if(NOT USE_SYSTEM_CPR)
1717
# long term goal is to replace the submodule in some way, e.g., by using prebuilt cpr binaries
1818
set(BUILD_SHARED_LIBS OFF)
1919

20+
# make sure that static libraries (especially built cURL libs) can be linked properly
21+
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
22+
2023
# cannot use system cURL on bionic at the moment, PR with fix sent: https://github.com/libcpr/cpr/pull/696
2124
## there is no need to build our own libcurl
2225
## in fact, building it as a static lib creates a whole circus of problems, and also takes time

0 commit comments

Comments
 (0)