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()