aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-10-15 18:37:14 +0200
committerRiccardo Spagni <ric@spagni.net>2017-10-15 18:37:14 +0200
commit1740f0a13ecc6de21059cf02e844d38f3b7b0798 (patch)
tree9dfcec869bc315f87859a7dc71c9d3285be59dd3 /CMakeLists.txt
parentMerge pull request #2582 (diff)
parentFix building with -DARCH=default -DNO_AES=ON (diff)
downloadmonero-1740f0a13ecc6de21059cf02e844d38f3b7b0798.tar.xz
Merge pull request #2583
27fdaaa4 Fix building with -DARCH=default -DNO_AES=ON (moneromooo-monero)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d432646cb..4c99473a9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -454,7 +454,11 @@ else()
option(NO_AES "Explicitly disable AES support" ${NO_AES})
- if(NOT NO_AES AND NOT ARM AND NOT PPC64LE)
+ if(NO_AES)
+ message(STATUS "AES support explicitly disabled")
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DNO_AES")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DNO_AES")
+ elseif(NOT ARM AND NOT PPC64LE)
message(STATUS "AES support enabled")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -maes")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -maes")