Skip to content
Snippets Groups Projects
Commit fd9910f5 authored by Deevashwer's avatar Deevashwer
Browse files

Bug in cmake script for machines that don't support rdseed

parent a5eea754
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,10 @@ find_package(GMP REQUIRED)
add_library(SCI-utils INTERFACE)
if(USE_RANDOM_DEVICE)
target_compile_definitions(SCI-utils INTERFACE EMP_USE_RANDOM_DEVICE=1)
endif(USE_RANDOM_DEVICE)
target_include_directories(SCI-utils
INTERFACE ${OPENSSL_INCLUDE_DIR} ${GMP_INCLUDE_DIR}
)
......
......@@ -18,7 +18,6 @@ ELSE(NOT ${RDSEED_COMPILE_RESULT})
ENDIF(NOT ${RDSEED_COMPILE_RESULT})
IF(${USE_RANDOM_DEVICE})
ADD_DEFINITIONS(-DEMP_USE_RANDOM_DEVICE)
message("${Red}-- Source of Randomness: random_device${ColourReset}")
ELSE(${USE_RANDOM_DEVICE})
message("${Green}-- Source of Randomness: rdseed${ColourReset}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment