aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_utilities/CMakeLists.txt
diff options
context:
space:
mode:
authorwarptangent <warptangent@tutanota.com>2016-02-18 06:14:31 -0800
committerwarptangent <warptangent@tutanota.com>2016-02-18 06:14:35 -0800
commitd258f6e63aa331c0bbd0f6def7118dede2853078 (patch)
treed08b58851cf875fe98576f899a08bad21c316ca4 /src/blockchain_utilities/CMakeLists.txt
parentMerge pull request #675 (diff)
downloadmonero-d258f6e63aa331c0bbd0f6def7118dede2853078.tar.xz
blockchain_import: Pass ARCH_WIDTH macro if 32-bit or not.
This also avoids warnings.
Diffstat (limited to 'src/blockchain_utilities/CMakeLists.txt')
-rw-r--r--src/blockchain_utilities/CMakeLists.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/blockchain_utilities/CMakeLists.txt b/src/blockchain_utilities/CMakeLists.txt
index 41c3098a0..96b30b83b 100644
--- a/src/blockchain_utilities/CMakeLists.txt
+++ b/src/blockchain_utilities/CMakeLists.txt
@@ -99,9 +99,9 @@ target_link_libraries(blockchain_converter
blockchain_db
${CMAKE_THREAD_LIBS_INIT})
-if(${ARCH_WIDTH} EQUAL 32)
+if(ARCH_WIDTH)
target_compile_definitions(blockchain_converter
- PUBLIC -DARCH_WIDTH=32)
+ PUBLIC -DARCH_WIDTH=${ARCH_WIDTH})
endif()
add_dependencies(blockchain_converter
@@ -122,9 +122,9 @@ target_link_libraries(blockchain_import
p2p
${CMAKE_THREAD_LIBS_INIT})
-if(${ARCH_WIDTH} EQUAL 32)
+if(ARCH_WIDTH)
target_compile_definitions(blockchain_import
- PUBLIC -DARCH_WIDTH=32)
+ PUBLIC -DARCH_WIDTH=${ARCH_WIDTH})
endif()
add_dependencies(blockchain_import