Skip to content

Commit 3427bec

Browse files
committed
add missing fPIC
1 parent d7169d1 commit 3427bec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/external/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,6 @@ target_include_directories(
2828
${TARGET_NAME}
2929
PRIVATE ${LIBTRIXI_INCLUDE_DIR}
3030
)
31+
32+
# Set compiler flag for position independent code
33+
target_compile_options( ${TARGET_NAME} PRIVATE "-fPIC" )

0 commit comments

Comments
 (0)