I'm getting errors about missing prerequisites when building
httpd-2.4.41 on Windows using CMake (version 3.15.2).

The modules in question are all optional so should simply be skipped
rather than stopping the build (I'm building with -DENABLE_MODULES=a),
but CMake is giving me an error:

CMake Error at CMakeLists.txt:770 (IF):
  if given arguments:

    "NOT" "OPENSSL_FOUND" "CURL_FOUND" "JANSSON_FOUND"
"HAVE_OPENSSL_102" "STREQUAL" ""

  Unknown arguments specified

Building with the same command-line worked fine in 2.4.39:

cmake -DCMAKE_INSTALL_PREFIX=D:\Dev\Temp\mp2\apache -G "NMake
Makefiles" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DENABLE_MODULES=a

Output is attached.

Any ideas what is going wrong here?
CMake Warning:
  No source or binary directory provided.  Both will be assumed to be the
  same as the current working directory, but note that this warning will
  become a fatal error in future CMake releases.


-- Could NOT find LibXml2 (missing: LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR) 
-- Could NOT find Lua51 (missing: LUA_LIBRARIES LUA_INCLUDE_DIR) 
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the 
system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY 
OPENSSL_INCLUDE_DIR) 
-- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR) 
-- 
-- Summary of feature detection:
-- 
-- LIBXML2_FOUND ............ : FALSE
-- LUA51_FOUND .............. : FALSE
-- NGHTTP2_FOUND ............ : FALSE
-- OPENSSL_FOUND ............ : FALSE
-- ZLIB_FOUND ............... : FALSE
-- BROTLI_FOUND ............. : FALSE
-- CURL_FOUND ............... : FALSE
-- JANSSON_FOUND ............ : 
-- APR_HAS_LDAP ............. : TRUE
-- APR_HAS_XLATE ............ : FALSE
-- APU_HAVE_CRYPTO .......... : FALSE
-- 
CMake Warning (dev) at CMakeLists.txt:568 (ELSEIF):
  Policy CMP0054 is not set: Only interpret if() arguments as variables or
  keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  Quoted variables like "i" will no longer be dereferenced when the policy is
  set to NEW.  Since the policy is not set the OLD behavior will be used.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:620 (GET_TARGET_PROPERTY):
  Policy CMP0026 is not set: Disallow use of the LOCATION target property.
  Run "cmake --help-policy CMP0026" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The LOCATION property should not be read from target "gen_test_char".  Use
  the target name directly with add_custom_command, or use the generator
  expression $<TARGET_FILE>, as appropriate.

This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:125 (ELSEIF):
  Policy CMP0054 is not set: Only interpret if() arguments as variables or
  keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  Quoted variables like "i" will no longer be dereferenced when the policy is
  set to NEW.  Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
  CMakeLists.txt:761 (GET_MOD_ENABLE_RANK)
This warning is for project developers.  Use -Wno-dev to suppress it.

--  mod_socache_dc was requested but couldn't be built due to a missing 
prerequisite (AN_UNIMPLEMENTED_SUPPORT_LIBRARY_REQUIREMENT)
--  mod_brotli was requested but couldn't be built due to a missing 
prerequisite (BROTLI_FOUND)
--  mod_charset_lite was requested but couldn't be built due to a missing 
prerequisite (APR_HAS_XLATE)
--  mod_deflate was requested but couldn't be built due to a missing 
prerequisite (ZLIB_FOUND)
--  mod_proxy_html was requested but couldn't be built due to a missing 
prerequisite (LIBXML2_FOUND)
--  mod_xml2enc was requested but couldn't be built due to a missing 
prerequisite (LIBXML2_FOUND)
--  mod_http2 was requested but couldn't be built due to a missing prerequisite 
(NGHTTP2_FOUND)
--  mod_lua was requested but couldn't be built due to a missing prerequisite 
(LUA51_FOUND)
CMake Error at CMakeLists.txt:770 (IF):
  if given arguments:

    "NOT" "OPENSSL_FOUND" "CURL_FOUND" "JANSSON_FOUND" "HAVE_OPENSSL_102" 
"STREQUAL" ""

  Unknown arguments specified


-- Configuring incomplete, errors occurred!
See also "D:/Dev/Temp/mp2/httpd-2.4.41/CMakeFiles/CMakeOutput.log".
See also "D:/Dev/Temp/mp2/httpd-2.4.41/CMakeFiles/CMakeError.log".

Reply via email to