From de67ebdda1905fc3345ee2597ddcf909224c54da Mon Sep 17 00:00:00 2001 From: Nigel Stewart Date: Fri, 2 Sep 2022 12:08:42 +1000 Subject: [PATCH] cmake: set(CMAKE_POSITION_INDEPENDENT_CODE ON) for Linux static library purposes --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a82bf936..3a866c34 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,6 +36,7 @@ if(MSVC) endif() set(CMAKE_CXX_EXTENSIONS OFF) +set(CMAKE_POSITION_INDEPENDENT_CODE ON) if(CMAKE_SYSTEM_NAME MATCHES "CYGWIN" OR CMAKE_SYSTEM_NAME MATCHES "MSYS") set(CMAKE_CXX_EXTENSIONS ON)