Skip to content

Commit c377ae6

Browse files
committed
Fix build: add POSITION_INDEPENDENT_CODE for shared library linking
1 parent f0bad01 commit c377ae6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ set_target_properties(libista PROPERTIES
3737
)
3838

3939
# Set output name (removes duplicate 'lib' prefix on Unix)
40-
set_target_properties(libista PROPERTIES OUTPUT_NAME ista)
40+
set_target_properties(libista PROPERTIES
41+
OUTPUT_NAME ista
42+
POSITION_INDEPENDENT_CODE ON
43+
)
4144

4245
# =============================================================================
4346
# Optional Database Support

0 commit comments

Comments
 (0)