mirror of
https://github.com/monero-project/monero.git
synced 2024-12-22 11:39:28 +00:00
qrcodegen: fix compilation with old gcc, use modern cmake
This commit is contained in:
parent
c108c5e2f0
commit
12ffc79b27
1 changed files with 2 additions and 1 deletions
3
external/qrcodegen/CMakeLists.txt
vendored
3
external/qrcodegen/CMakeLists.txt
vendored
|
@ -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})
|
||||||
|
|
Loading…
Reference in a new issue