From ef156e49e0523d73d4abaec0c3fb4814a39f5d55 Mon Sep 17 00:00:00 2001 From: Alex Richert Date: Wed, 4 Dec 2024 15:47:22 -0800 Subject: [PATCH] enable PIC as default for static lib --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b6ac912a..f096aaac 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,6 +21,7 @@ option(BUILD_D "Build the 8-byte real version of the library, libip_d.{a,so}" ON option(BUILD_8 "Build the 8-byte integer & real version of the library, libip_8.{a,so}" OFF) option(BUILD_DEPRECATED "Build deprecated spectral processing functions" OFF) option(TEST_TIME_LIMIT "Set timeout for tests" OFF) +option(CMAKE_POSITION_INDEPENDENT_CODE "Enable PIC" ON) # Figure whether user wants a _4, a _d, and/or _8. if(BUILD_4)