[CMake] String option recognized as boolean

Андрей Парамонов cmr.pent at gmail.com
Fri May 30 05:55:27 EDT 2014


2014-05-30 13:09 GMT+04:00 Nils Gladitz <nilsgladitz at gmail.com>:

> Does the cache show BOOL as the type of HDF5_ALLOW_EXTERNAL_SUPPORT or is
> it specifically just cmake-gui showing the wrong type?
>
> If it is BOOL in your CMakeCache.txt then it has to be specifically set as
> such from within your project somewhere.
>

No, in CMakeCache.txt I see

//No help, variable specified on the command line.
HDF5_ALLOW_EXTERNAL_SUPPORT:STRING="SVN"

Somehow, CMake got correct type there, but missed a description.
Running cmake --build . --config Release works as expected afterwards.


> Could there be another option() (or set() with type BOOL) or could you
> accidentally be running cmake on the original sources rather than the
> modified sources perhaps?
>

The latter, no, I've triple-checked.

The former, I don't know ;-) I'm using CMake for the first time ever, and
the project is not mine also. But searching for HDF5_ALLOW_EXTERNAL_SUPPORT
didn't suggest anything particularly suspicious.

Could cmake-gui be using a build directory other than the one you are
> currently observing?


No, I've triple-checked.

Best wishes
and thank you for you support,
Andrey Paramonov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20140530/f1b1a2ce/attachment.html>


More information about the CMake mailing list