On Thu, Sep 5, 2013 at 8:53 AM, Bert Huijben <bert@qqmail.nl> wrote:


> -----Original Message-----
> From: trawick@apache.org [mailto:trawick@apache.org]
> Sent: donderdag 29 augustus 2013 20:49
> To: commits@apr.apache.org
> Subject: svn commit: r1518760 - in /apr/apr/branches/1.4.x: CMakeLists.txt
> README.cmake include/apr.hwc
>
> Author: trawick
> Date: Thu Aug 29 18:48:38 2013
> New Revision: 1518760
>
> URL: http://svn.apache.org/r1518760
> Log:
> Add cmake build for APR 1.4.x.
>
> apr.hwc is the same as apr.hw other than making the APR_HAVE_IPV6
> setting a variable.
>
> This is not currently in the 1.5.x branch, which sees little
> use.
>
> Added:
>     apr/apr/branches/1.4.x/CMakeLists.txt   (with props)
>     apr/apr/branches/1.4.x/README.cmake   (with props)
>     apr/apr/branches/1.4.x/include/apr.hwc   (with props)
>
> Added: apr/apr/branches/1.4.x/CMakeLists.txt
> URL:
> http://svn.apache.org/viewvc/apr/apr/branches/1.4.x/CMakeLists.txt?rev=1
> 518760&view=auto
> ==========================================================
> ====================
> --- apr/apr/branches/1.4.x/CMakeLists.txt (added)
> +++ apr/apr/branches/1.4.x/CMakeLists.txt Thu Aug 29 18:48:38 2013
> @@ -0,0 +1,317 @@
> +PROJECT(APR C)
> +
> +# Licensed to the Apache Software Foundation (ASF) under one or more
> +# contributor license agreements.  See the NOTICE file distributed with
> +# this work for additional information regarding copyright ownership.
> +# The ASF licenses this file to You under the Apache License, Version 2.0
> +# (the "License"); you may not use this file except in compliance with
> +# the License.  You may obtain a copy of the License at
> +#
> +#     http://www.apache.org/licenses/LICENSE-2.0
> +#
> +# Unless required by applicable law or agreed to in writing, software
> +# distributed under the License is distributed on an "AS IS" BASIS,
> +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> implied.
> +# See the License for the specific language governing permissions and
> +# limitations under the License.
> +#
> +# Read README.cmake before using this.
> +
> +CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
> +
> +OPTION(APR_INSTALL_PRIVATE_H  "Install selected private .h files (for
> httpd)"  OFF)
> +OPTION(APR_HAVE_IPV6        "IPv6 support"                 ON)
> +OPTION(APR_SHOW_SETTINGS    "Show the build configuration" ON)
> +OPTION(APR_BUILD_TESTAPR    "Build the test suite"         OFF)
<snip>

You also need these APR_INSTALL_PRIVATE_H private .h files to build Subversion.

With Subversion <= 1.8 we assumed that you always have the APR sources available, but on Subversion trunk just having these headers available with your APR allows you to build against a pre-compiled APR.

So it might be useful to note this somewhere.

        Bert

Thanks!

r1520293 (trunk)
r1520295 (1.4.x)


--
Born in Roswell... married an alien...
http://emptyhammock.com/