So I tried few Microsoft Visual Studio versions...
#1 Visual Studio 2008
>cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DAPR_BUILD_TESTAPR=ON
-- The C compiler identification is MSVC 15.0.30729.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
>ninja
...
C:\Workplace\apacheapr\trunk\xml\apr_xml_xmllite.c(629) : error C4233:
nonstandard extension used : '__uuidof' keyword only supported in C++, not C
C:\Workplace\apache\apr\trunk\xml\apr_xml_xmllite.c(629) : error C2059:
syntax error : ','
[33/386] Building ...
ninja: build stopped: subcommand failed.
So it fails
Delete build directory and setup another version
#2 Visual Studio 2010
>cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DAPR_BUILD_TESTAPR=ON
-- The C compiler identification is MSVC 16.0.40219.1
-- Detecting C compiler ABI info
>ninja
...
C:\Workplace\apache\apr\trunk\dso\win32\dso.c(84) : error C2065:
'LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR' : undeclared identifier
[48/386] Building ...
ninja: build stopped: subcommand failed.
OK it went further, but still fails
Delete build directory and setup another version
#3 Visual Studio 2012
>cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DAPR_BUILD_TESTAPR=ON
-- The C compiler identification is MSVC 17.0.50727.1
-- Detecting C compiler ABI info
>ninja
...
C:\Workplace\apache\apr\trunk\json\apr_json_encode.c(110) : error C2275:
'apr_size_t' : illegal use of this type as an expression
...
C:\Workplace\apache\apr\trunk\json\apr_json_encode.c(137) : error C2065:
'left': undeclared identifier
[72/386] ...
ninja: build stopped: subcommand failed.
I'll check VS2015 and VS2017.
So far only VS2019 works.
Regards
--
^TM