Merge pull request #6766

12ffc79b2 qrcodegen: fix compilation with old gcc, use modern cmake (selsta)
This commit is contained in:
Alexander Blair 2020-08-27 03:04:10 -07:00
commit 8aaeff46ee
No known key found for this signature in database
GPG key ID: C64552D877C32479

View file

@ -1,7 +1,8 @@
project(libqrcodegen) project(libqrcodegen)
add_library(qrcodegen STATIC QrCode.cpp) add_library(qrcodegen STATIC QrCode.cpp)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC") set_target_properties(qrcodegen PROPERTIES POSITION_INDEPENDENT_CODE ON)
set_target_properties(qrcodegen PROPERTIES CXX_STANDARD 11)
target_include_directories(qrcodegen PUBLIC target_include_directories(qrcodegen PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}) ${CMAKE_CURRENT_SOURCE_DIR})