cmake: enable position independent code for quirc

This commit is contained in:
selsta 2021-07-01 18:36:43 +02:00
parent b58bff39a0
commit 15dbbaf691
No known key found for this signature in database
GPG key ID: 2EA0A99A8B07AE5E

View file

@ -4,4 +4,5 @@ add_library(quirc STATIC
quirc/lib/quirc.c quirc/lib/quirc.c
quirc/lib/version_db.c quirc/lib/version_db.c
) )
set_target_properties(quirc PROPERTIES POSITION_INDEPENDENT_CODE ON)
target_include_directories(quirc PUBLIC quirc/lib) target_include_directories(quirc PUBLIC quirc/lib)