aboutsummaryrefslogtreecommitdiff
path: root/external/qrcodegen
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2020-08-16 18:04:54 +0200
committerselsta <selsta@sent.at>2020-08-16 18:06:55 +0200
commit12ffc79b2712b9e25478472af93567a774370400 (patch)
tree729446647e121fefd70b8eb3999eef18da67e427 /external/qrcodegen
parentMerge pull request #6354 (diff)
downloadmonero-12ffc79b2712b9e25478472af93567a774370400.tar.xz
qrcodegen: fix compilation with old gcc, use modern cmake
Diffstat (limited to 'external/qrcodegen')
-rw-r--r--external/qrcodegen/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/external/qrcodegen/CMakeLists.txt b/external/qrcodegen/CMakeLists.txt
index a9060e3e8..094b49760 100644
--- a/external/qrcodegen/CMakeLists.txt
+++ b/external/qrcodegen/CMakeLists.txt
@@ -1,7 +1,8 @@
project(libqrcodegen)
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
${CMAKE_CURRENT_SOURCE_DIR})