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

@ -16,3 +16,4 @@ add_library(jansson STATIC
target_compile_definitions(jansson PRIVATE HAVE_STDINT_H)
target_include_directories(jansson INTERFACE jansson)
target_compile_options(jansson PRIVATE -Wall -Werror -Wno-unused-function -O3)
set_property(TARGET jansson PROPERTY POSITION_INDEPENDENT_CODE ON)