CMake: Rename USE_GETRANDOM to EXPAT_WITH_GETRANDOM

This commit is contained in:
Sebastian Pipping 2019-08-30 21:22:17 +02:00
parent 458be796ae
commit b244583d34
2 changed files with 3 additions and 3 deletions

View File

@ -55,7 +55,7 @@ option(XML_NS "Define to make XML Namespaces functionality available" ON)
option(EXPAT_WARNINGS_AS_ERRORS "Treat all compiler warnings as errors" OFF)
if(NOT WIN32)
option(XML_DEV_URANDOM "Define to include code reading entropy from `/dev/urandom'." ON)
set(USE_GETRANDOM "AUTO" CACHE STRING
set(EXPAT_WITH_GETRANDOM "AUTO" CACHE STRING
"Make use of getrandom function (ON|OFF|AUTO) [default=AUTO]")
set(USE_SYS_GETRANDOM "AUTO" CACHE STRING
"Make use of syscall SYS_getrandom (ON|OFF|AUTO) [default=AUTO]")
@ -135,7 +135,7 @@ macro(evaluate_detection_results use_ref have_ref thing_lower thing_title)
endmacro()
if(NOT WIN32)
evaluate_detection_results(USE_GETRANDOM HAVE_GETRANDOM "function getrandom" "Function getrandom")
evaluate_detection_results(EXPAT_WITH_GETRANDOM HAVE_GETRANDOM "function getrandom" "Function getrandom")
evaluate_detection_results(USE_SYS_GETRANDOM HAVE_SYSCALL_GETRANDOM "syscall SYS_getrandom" "Syscall SYS_getrandom")
endif()

View File

@ -27,7 +27,7 @@ Release x.x.x xxx xxx xx xxxx
#326 CMake: Add argument -DXML_LARGE_SIZE=(ON|OFF), default OFF
#326 CMake: Add argument -DXML_MIN_SIZE=(ON|OFF), default OFF
#239 #277 CMake: Add arguments
-DUSE_GETRANDOM=(ON|OFF|AUTO), default AUTO
-DEXPAT_WITH_GETRANDOM=(ON|OFF|AUTO), default AUTO
-DUSE_SYS_GETRANDOM=(ON|OFF|AUTO), default AUTO
#326 CMake: Install expat_config.h to include directory
#326 CMake: Generate and install configuration files for