Re: [CMake] cmake needs 2 runs to find boost

2015-11-05 Thread Peter Steinbach
I guess, nobody has a hint on what to look at or what to try? Best, Peter On Tuesday, November 03, 2015 02:10:54 PM Peter Steinbach wrote: > Hi to all, > > I tested this with cmake 3.2.2 and 3.3.2 and still get the same problem. > I'd like to use boost with gcc on windows 7 64bit. I installed

Re: [CMake] cmake needs 2 runs to find boost

2015-11-05 Thread Peter Steinbach
Hi Benedikt, interesting thought, however I wonder why cmake is then capable of deducing the right boost version and include path. Just inside the first error message, I see: (x86)/CMake/share/cmake-3.2/Modules/FindBoost.cmake:1182 (message): > >Unable to find the requested Boost libraries.

Re: [CMake] cmake needs 2 runs to find boost

2015-11-05 Thread Benedikt Hegner
Hi Peter, as I don't use windows at all, this is just a very wild guess... Could it be that in the second run you actually don't use /CMake/share/cmake-3.2/Modules/FindBoost.cmake but boost-config.cmake, which it now finds in the cached environment of the first run? This assumes of course

Re: [CMake] cmake needs 2 runs to find boost

2015-11-05 Thread Peter Steinbach
Hi to all, ok, I tried the attached minimal CMakeLists.txt again and found out that it fails in the way I described only with the "MSYS Makefiles" generator. If I use the same CMakeLists.txt without a custom generator (so MSVS is the default IIRC), the libraries are found alright! Any ideas?

[CMake] cmake needs 2 runs to find boost

2015-11-03 Thread Peter Steinbach
Hi to all, I tested this with cmake 3.2.2 and 3.3.2 and still get the same problem. I'd like to use boost with gcc on windows 7 64bit. I installed boost and gcc with msys2 as I cannot use MSVC for the actual project I am looking into for this. the funny thing, if I use the attached