From: Rolf Eike Beer Date: Sat, 5 Aug 2017 12:59:53 +0000 (+0200) Subject: CMake: add option for /dev/urandom availability X-Git-Tag: R_2_2_4~22^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=72b538f2a7473048631de9fc6ad988b3fca687d4;p=libexpat CMake: add option for /dev/urandom availability --- diff --git a/expat/CMakeLists.txt b/expat/CMakeLists.txt index 128966be..271ccf3b 100644 --- a/expat/CMakeLists.txt +++ b/expat/CMakeLists.txt @@ -22,6 +22,12 @@ option(INSTALL "install expat files in cmake install target" ON) set(XML_CONTEXT_BYTES 1024 CACHE STRING "Define to specify how much context to retain around the current parse point") option(XML_DTD "Define to make parameter entity parsing functionality available" ON) option(XML_NS "Define to make XML Namespaces functionality available" ON) +if(NOT WIN32) + option(XML_DEV_URANDOM "Define to include code reading entropy from `/dev/urandom'." ON) + if(XML_DEV_URANDOM) + add_definitions(-DXML_DEV_URANDOM) + endif() +endif() if(XML_DTD) set(XML_DTD 1)