1

I tried to do that, but it doesn't appear on the cmake gui, how have I got to do to change the default value of option depending of S.O, and it appear in the cmake gui?

if(UNIX)
  option(HASH "enable hash" ON)
else()
  option(HASH "enable hash" OFF)
endif()
Braiam
  • 1
  • 11
  • 47
  • 78
Alex
  • 3,301
  • 4
  • 29
  • 43
  • Just wondering, was the option given to `mark_as_advanced`? That would certainly inhibit it from being displayed on the GUI. –  Apr 03 '14 at 18:36

1 Answers1

0

Unless you unset or mark_as_advanced the HASH variable, it should appear in the CMake GUI.

lrineau
  • 6,036
  • 3
  • 34
  • 47