]> granicus.if.org Git - libexpat/commitdiff
CMake: Get options to show with "cmake -D_EXPAT_HELP=ON -LH ."
authorSebastian Pipping <sebastian@pipping.org>
Fri, 30 Aug 2019 20:28:30 +0000 (22:28 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Fri, 30 Aug 2019 21:54:51 +0000 (23:54 +0200)
expat/CMakeLists.txt

index 6e8d7e2bb788b40e8405b12bac9313961b2620ce..f6f8c129e75d8ce7df883a3879d96dae49e20f87 100644 (file)
@@ -53,7 +53,7 @@ set(EXPAT_CONTEXT_BYTES 1024 CACHE STRING "Define to specify how much context to
 option(EXPAT_DTD "Define to make parameter entity parsing functionality available" ON)
 option(EXPAT_NS "Define to make XML Namespaces functionality available" ON)
 option(EXPAT_WARNINGS_AS_ERRORS "Treat all compiler warnings as errors" OFF)
-if(NOT WIN32)
+if(NOT WIN32 OR _EXPAT_HELP)
     option(EXPAT_DEV_URANDOM "Define to include code reading entropy from `/dev/urandom'." ON)
     set(EXPAT_WITH_GETRANDOM "AUTO" CACHE STRING
             "Make use of getrandom function (ON|OFF|AUTO) [default=AUTO]")
@@ -65,7 +65,7 @@ option(EXPAT_UNICODE_WCHAR_T "Use wchar_t to represent UTF-16 instead of unsigne
 option(EXPAT_ATTR_INFO "Define to allow retrieving the byte offsets for attribute names and values" OFF)
 option(EXPAT_LARGE_SIZE "Make XML_GetCurrent* functions return <(unsigned) long long> rather than <(unsigned) long>" OFF)
 option(EXPAT_MIN_SIZE "Get a smaller (but slower) parser (in particular avoid multiple copies of the tokenizer)" OFF)
-if(MSVC)
+if(MSVC OR _EXPAT_HELP)
     set(EXPAT_MSVC_STATIC_CRT OFF CACHE BOOL "Use /MT flag (static CRT) when compiling in MSVC")
 endif()