cmake deps: add -fPIC so they can be integrated in a pm3 shared lib

This commit is contained in:
Philippe Teuwen committed 2020-05-06 15:20:43 +02:00
1 parent eafeb47126
commit 9478dbc071
9 files changed
+15

No files matched your search

+1
View File
@@ -12,3 +12,4 @@ add_library(tinycbor STATIC
target_include_directories(tinycbor INTERFACE tinycbor)
# Strange errors on Mingw when compiling with -O3
target_compile_options(tinycbor PRIVATE -Wall -Werror -O2)
set_property(TARGET tinycbor PROPERTY POSITION_INDEPENDENT_CODE ON)