A group of related fixes to fix the CMake build for Visual Studio (2015). Tested against trunk and 2.4.20. 0001: On my machine, the current implementation isn't able to correctly discover APR features (like APU_HAVE_CRYPTO). Setting CMAKE_REQUIRED_INCLUDES to APR's include directory seems to fix this problem. 0002: The current implementation assumes .lib and related files will always be placed directly inside the build root. But Visual Studio is a multi-configuration generator, which means that output files may be placed in a per-configuration subdirectory. To fix this, use CMake generator expressions instead of hardcoding the paths to these files. 0003: Calls to Perl during installation did not quote the file path arguments, so the installation would fail if the target path contained spaces (e.g. "Program Files"). Quote all of these paths.
Created attachment 33933 [details] 0001: use CMAKE_REQUIRED_INCLUDES to find APR macros
Created attachment 33934 [details] 0002: use generator expressions to find output files
Created attachment 33935 [details] 0003: quote installation paths
Trunked in r1752331, r1752332, and r1752333. Proposed for 2.4.x.
Backported in 2.4.x in r1770674