cmake deps: add prefix pm3rrg_rdv4_

This commit is contained in:
Philippe Teuwen 2020-05-06 14:45:02 +02:00
commit 53af4304c1
10 changed files with 90 additions and 90 deletions

View file

@ -1,4 +1,4 @@
add_library(tinycbor STATIC
add_library(pm3rrg_rdv4_tinycbor STATIC
tinycbor/cborencoder.c
tinycbor/cborencoder_close_container_checked.c
tinycbor/cborerrorstrings.c
@ -9,7 +9,7 @@ add_library(tinycbor STATIC
tinycbor/cborvalidation.c
)
target_include_directories(tinycbor INTERFACE tinycbor)
target_include_directories(pm3rrg_rdv4_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)
target_compile_options(pm3rrg_rdv4_tinycbor PRIVATE -Wall -Werror -O2)
set_property(TARGET pm3rrg_rdv4_tinycbor PROPERTY POSITION_INDEPENDENT_CODE ON)