[CMake] String option recognized as boolean

Nils Gladitz nilsgladitz at gmail.com
Fri May 30 06:46:45 EDT 2014


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 "Allow External 
Library Building (NO SVN TGZ)")
   SET_PROPERTY(CACHE HDF5_ALLOW_EXTERNAL_SUPPORT PROPERTY STRINGS NO 
SVN TGZ)


cmake-gui (2.8.12.2) gives me a drop-down list with the three distinct 
values "NO", "SVN", TGZ".

Nils


More information about the CMake mailing list