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

This commit is contained in:
Philippe Teuwen 2020-05-06 14:39:08 +02:00
commit 9478dbc071
9 changed files with 15 additions and 0 deletions

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)