Re: [CMake] Building Boost as an ExternalProject

2017-10-02 Thread Michael Powell
On Mon, Oct 2, 2017 at 4:54 PM, paul wrote: > For building boost with cmake you can use this cmake script: > > https://github.com/pfultz2/cget/blob/master/cget/cmake/boost.cmake > > You can drop it in at the top of the boost tree and it will build Boost.Build > and then build boost with b2. This w

Re: [CMake] Building Boost as an ExternalProject

2017-10-02 Thread paul via CMake
For building boost with cmake you can use this cmake script: https://github.com/pfultz2/cget/blob/master/cget/cmake/boost.cmake You can drop it in at the top of the boost tree and it will build Boost.Build and then build boost with b2. This will map the cmake toolchain to the boost toolchain so t

Re: [CMake] Building Boost as an ExternalProject

2017-10-02 Thread Michael Powell
On Mon, Oct 2, 2017 at 3:58 PM, Jacob Barrett wrote: > The Apache Geode Native project is building Boost as an external project. > You may want to look at our setup for inspiration. It builds correction on > Windows with VS, Solaris x86 and SPARC with Solaris Studio, Linux with GCC > and OS X with

Re: [CMake] Building Boost as an ExternalProject

2017-10-02 Thread Jacob Barrett
The Apache Geode Native project is building Boost as an external project. You may want to look at our setup for inspiration. It builds correction on Windows with VS, Solaris x86 and SPARC with Solaris Studio, Linux with GCC and OS X with Xcode.Right now we are purely header only so if you need some

Re: [CMake] Building Boost as an ExternalProject

2017-10-02 Thread Michael Powell
On Mon, Oct 2, 2017 at 3:06 PM, Michael Powell wrote: > On Mon, Oct 2, 2017 at 2:34 PM, Michael Powell wrote: >> Hello, >> >> This question has been raised from time to time I think. I am trying >> to build Boost as an ExternalProject, but I am ending up with an >> error: 'cmd.exe' returned with

Re: [CMake] rebuild externalprojects

2017-10-02 Thread Alexander Neundorf
nd two clunky work-arounds: if it's a cmake-based project, I just add --no-warn-unused-cli -DREBUILD_FLAG=123 to CMAKE_ARGS, and increase this "REBUILD_FLAG" whenever a rebuild is necessary. What also seems to work is to misuse the URL_MD5, and set it to the date of the last update,

Re: [CMake] [cmake-developers] Debugging find_package() search behavior?

2017-10-02 Thread Alexander Neundorf
On 2017 M10 1, Sun 12:38:43 CEST David Cole via CMake wrote: > No, I was already promptly corrected by Brad, too. I was not > accounting for the fact that the other find_* calls used inside of > find modules also use CMAKE_PREFIX_PATH. I was thinking of its use to > find a project's config file fro

Re: [CMake] Advice on converting legacy project to modern CMake

2017-10-02 Thread Alexander Neundorf
On 2017 M08 10, Thu 17:15:00 CEST Robert Maynard wrote: > > Which leads to a question I have for the Kitware types here. What > > should I suggest to my Linux enterprise distribution users? Can they > simply download and use the latest Linux binary version of CMake that > is distributed by Kitwar

Re: [CMake] Building Boost as an ExternalProject

2017-10-02 Thread Michael Powell
On Mon, Oct 2, 2017 at 2:34 PM, Michael Powell wrote: > Hello, > > This question has been raised from time to time I think. I am trying > to build Boost as an ExternalProject, but I am ending up with an > error: 'cmd.exe' returned with exit code 1. Along these lines. >From the Boost VC project fi

Re: [CMake] debugging CMAKE_PREFIX_PATH

2017-10-02 Thread Alexander Neundorf
On 2017 M09 13, Wed 09:50:48 CEST Patrick Welche wrote: > I think I am confused by the following: > > 1) CMAKE_PREFIX_PATH; > > Problematic (scribus) CMakeLists.txt: > >set(CMAKE_PREFIX_PATH "${QT_PREFIX}/lib/cmake") This looks wrong to me. In general CMAKE_PREFIX_PATH should contain only t

[CMake] Building Boost as an ExternalProject

2017-10-02 Thread Michael Powell
Hello, This question has been raised from time to time I think. I am trying to build Boost as an ExternalProject, but I am ending up with an error: 'cmd.exe' returned with exit code 1. Along these lines. Perhaps I have involved one too many variables, but I doubt it. Ignore the cross-plat stuff,

Re: [CMake] Transitive dependencies of header libraries

2017-10-02 Thread Alberto Luaces
Ok, I see. Thanks a lot, Paul! paul via CMake writes: > You need to do add the dependencies in the config.cmake file, which means you > need to seperate the config and export file. So in your CMakeLists.txt, you > would do: > > install(TARGETS myheaderonlylib EXPORT myheaderonlylib-targets DESTI