Wrong CMake warning when building IMP 2.2.1
Dear all,
I am building IMP by using a Boost installation in a non-standard location. When running cmake with "-DBOOST_ROOT=/my/boost/root", the configuration ends successfully but at the end a warning is issued:
---------------- CMake Warning: The variable, 'BOOST_ROOT', specified manually, was not used during the generation. ----------------
However I don't think this warning is true, because if I run cmake w/o "-DBOOST_ROOT=/my/boost/root", I run into a configuration error:
---------------- CMake Error at /g/software/linux/pack/cmake-2.8.4/share/cmake-2.8/Modules/FindBoost.cmake:1128 (message): Unable to find the requested Boost libraries.
Boost version: 1.33.1
Boost include path: /usr/include
Detected version of Boost is too old. Requested version was 1.38 (or newer).
The following Boost libraries could not be found:
boost_system boost_filesystem boost_thread boost_program_options
No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT to the location of Boost.
etc. etc. ----------------
So in fact the variable BOOST_ROOT *is* used and the warning is wrong (or at least misleading).
This warning didn't appear when configuring IMP 2.2.0
Cheers Frank
On 9/3/14, 11:20 AM, Frank Thommen wrote: > When running cmake with "-DBOOST_ROOT=/my/boost/root", the > configuration ends successfully but at the end a warning is issued: > > ---------------- > CMake Warning: The variable, 'BOOST_ROOT', specified manually, was not > used during the generation. > ---------------- > > However I don't think this warning is true
This warning comes from cmake - we have no control over it. The consensus from cmake experts seems to be "ignore this warning". Looks like you can use the --no-warn-unused-cli cmake option to suppress it if it bothers you.
Ben
On 09/03/2014 09:34 PM, Ben Webb wrote: > On 9/3/14, 11:20 AM, Frank Thommen wrote: >> When running cmake with "-DBOOST_ROOT=/my/boost/root", the >> configuration ends successfully but at the end a warning is issued: >> >> ---------------- >> CMake Warning: The variable, 'BOOST_ROOT', specified manually, was not >> used during the generation. >> ---------------- >> >> However I don't think this warning is true > > This warning comes from cmake - we have no control over it. The > consensus from cmake experts seems to be "ignore this warning". Looks > like you can use the --no-warn-unused-cli cmake option to suppress it if > it bothers you.
still strange, that it didn't appear with IMP 2.2.0. But I can live with it, no problem. The post was rather ment as a FYI for you in case there is something wrong with the build system.
frank
participants (2)
-
Ben Webb
-
Frank Thommen