Skip to content

Commit 3d13c41

Browse files
nigels-comNigel Stewart
andauthored
Build in -fPIC mode, even for static library. (#70)
Co-authored-by: Nigel Stewart <[email protected]>
1 parent 9f25a14 commit 3d13c41

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ option( CCCORELIB_SCALAR_DOUBLE
3434
OFF
3535
)
3636

37+
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
38+
3739
# Add the library (shared or static)
3840
if ( CCCORELIB_SHARED )
3941
add_library( CCCoreLib SHARED )

0 commit comments

Comments
 (0)