CMake: Option to Disable the usuage of getrandom after autodetect
@@ -58,6 +58,12 @@ if(NOT WIN32)
set(XML_DEV_URANDOM 0)
endif(XML_DEV_URANDOM)
endif()
+if (NOT WIN32)
+ option(AUTODETECT_GETRANDOM "Define to bypass auto-detection of getrandom function" ON)
+ if(NOT AUTODETECT_GETRANDOM)
+ set(HAVE_GETRANDOM 0)
+ endif()
+endif()
option(XML_UNICODE "Use UTF-16 encoded chars (two bytes) instead of UTF-8" OFF)
option(XML_UNICODE_WCHAR_T "Use wchar_t to represent UTF-16 instead of unsigned short" OFF)
option(XML_ATTR_INFO "Define to allow retrieving the byte offsets for attribute names and values" OFF)
