[CMake] String option recognized as boolean

Nils Gladitz nilsgladitz at gmail.com
Fri May 30 05:09:06 EDT 2014


On 05/30/2014 10:31 AM, Андрей Парамонов wrote:
> 2014-05-30 11:54 GMT+04:00 Nils Gladitz <nilsgladitz at gmail.com
> <mailto:nilsgladitz at gmail.com>>:
>
>     Did you start with a fresh build directory?
>     If HDF5_ALLOW_EXTERNAL_SUPPORT already exists as a BOOL entry in
>     your CMakeCache.txt the set() will not modify its type or value.
>
>

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.

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?

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

Nils


More information about the CMake mailing list