aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Blair <snipa@jagtech.io>2020-08-27 03:04:10 -0700
committerAlexander Blair <snipa@jagtech.io>2020-08-27 03:04:10 -0700
commit8aaeff46eef54cade1833733a92809ff1ac9b318 (patch)
tree6127b5addaf129867813ead97211b68e5498367e
parentMerge pull request #6763 (diff)
parentqrcodegen: fix compilation with old gcc, use modern cmake (diff)
downloadmonero-8aaeff46eef54cade1833733a92809ff1ac9b318.tar.xz
Merge pull request #6766
12ffc79b2 qrcodegen: fix compilation with old gcc, use modern cmake (selsta)
-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})