Report error if OS is not 64-bit

This commit is contained in:
seelabs
2016-09-15 16:08:38 -04:00
committed by Edward Hennis
parent f456355da2
commit c6923dcf88
2 changed files with 10 additions and 0 deletions

View File

@@ -413,3 +413,8 @@ target_link_libraries(rippled
${OPENSSL_LIBRARIES} ${PROTOBUF_LIBRARIES} ${SANITIZER_LIBRARIES})
link_common_libraries(rippled)
if (NOT CMAKE_SIZEOF_VOID_P EQUAL 8)
message(WARNING "Rippled requires a 64 bit target architecture.\n"
"The most likely cause of this warning is trying to build rippled with a 32-bit OS.")
endif()