Skip to content

Commit 5e67edc

Browse files
committed
Enable fPIC on Tinkerforge API.
1 parent 9f04cb6 commit 5e67edc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

third_party/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ add_library(tinkerforge STATIC ${TinkerforgeHeaderFiles} ${TinkerforgeSourceFile
6666
target_include_directories(tinkerforge PUBLIC
6767
PUBLIC $<BUILD_INTERFACE:${TinkerforgeDir}>)
6868

69+
if (NOT WIN32)
70+
set_property(TARGET tinkerforge PROPERTY POSITION_INDEPENDENT_CODE ON)
71+
endif ()
72+
6973
# Windows Implementation Library
7074
FetchContent_Declare(wil
7175
URL "https://github.com/microsoft/wil/archive/v1.0.230202.1.tar.gz"

0 commit comments

Comments
 (0)