[CMake] String option recognized as boolean

2014-05-30 Thread Андрей Парамонов
To reproduce: 1) Download http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.13.zip, unzip to hdf5-1.8.13. 2) Run cmake -G Visual Studio 12 hdf5-1.8.13 3) Run cmake-gui, find HDF5_ALLOW_EXTERNAL_SUPPORT option. Note that it was recognized as boolean, while in sources it is described as

Re: [CMake] String option recognized as boolean

2014-05-30 Thread Nils Gladitz
On 05/30/2014 08:27 AM, Андрей Парамонов wrote: Is it a problem in cmake or in HDF5 sources? If the latter, how could it be fixed? I'm a first-time cmake user, so please forgive my ignorance ;-) Best wishes, Andrey Paramonov I haven't tried configuring the project but looking at the sources

Re: [CMake] String option recognized as boolean

2014-05-30 Thread Андрей Парамонов
I have replaced option (HDF5_ALLOW_EXTERNAL_SUPPORT Allow External Library Building (NO SVN TGZ) NO) with set (HDF5_ALLOW_EXTERNAL_SUPPORT NO CACHE STRING Allow External Library Building (NO SVN TGZ)) SET_PROPERTY(CACHE HDF5_ALLOW_EXTERNAL_SUPPORT PROPERTY STRINGS NO SVN TGZ) however cmake-gui

Re: [CMake] String option recognized as boolean

2014-05-30 Thread Nils Gladitz
On 05/30/2014 09:37 AM, Андрей Парамонов wrote: I have replaced option (HDF5_ALLOW_EXTERNAL_SUPPORT Allow External Library Building (NO SVN TGZ) NO) with set (HDF5_ALLOW_EXTERNAL_SUPPORT NO CACHE STRING Allow External Library Building (NO SVN TGZ)) SET_PROPERTY(CACHE

Re: [CMake] String option recognized as boolean

2014-05-30 Thread Андрей Парамонов
2014-05-30 11:54 GMT+04:00 Nils Gladitz nilsglad...@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. I've double-checked and yes, the problem doesn't go

Re: [CMake] String option recognized as boolean

2014-05-30 Thread Nils Gladitz
On 05/30/2014 10:31 AM, Андрей Парамонов wrote: 2014-05-30 11:54 GMT+04:00 Nils Gladitz nilsglad...@gmail.com mailto:nilsglad...@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

Re: [CMake] String option recognized as boolean

2014-05-30 Thread Андрей Парамонов
2014-05-30 13:09 GMT+04:00 Nils Gladitz nilsglad...@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

Re: [CMake] String option recognized as boolean

2014-05-30 Thread David Cole
The cache is telling you: //No help, variable specified on the command line. If you want the help string from your sources to appear in the CMakeCache.txt, then don't specify a value for it on the command line... Delete the cache, and try again without giving the arg on the command line,

Re: [CMake] String option recognized as boolean

2014-05-30 Thread Nils Gladitz
On 05/30/2014 12:12 PM, David Cole wrote: The cache is telling you: //No help, variable specified on the command line. If you want the help string from your sources to appear in the CMakeCache.txt, then don't specify a value for it on the command line... Delete the cache, and try again

Re: [CMake] String option recognized as boolean

2014-05-30 Thread Андрей Парамонов
2014-05-30 14:12 GMT+04:00 David Cole dlrd...@aol.com: The cache is telling you: //No help, variable specified on the command line. If you want the help string from your sources to appear in the CMakeCache.txt, then don't specify a value for it on the command line... Delete the cache,

Re: [CMake] String option recognized as boolean

2014-05-30 Thread Nils Gladitz
On 05/30/2014 12:28 PM, Андрей Парамонов wrote: However, in any case cmake-gui shows a checkbox, not a editbox/combobox. So, it's likely a problem of cmake-gui. I tried this reduced CMakeLists.txt: cmake_minimum_required(VERSION 2.8.12) set (HDF5_ALLOW_EXTERNAL_SUPPORT NO CACHE STRING

Re: [CMake] String option recognized as boolean

2014-05-30 Thread Андрей Парамонов
I have now checked on different system, and it works now in cmake-gui (with patched CMakeFilters.cmake)! Thank you for your support, Andrey Paramonov 2014-05-30 14:46 GMT+04:00 Nils Gladitz nilsglad...@gmail.com: On 05/30/2014 12:28 PM, Андрей Парамонов wrote: However, in any case cmake-gui