22
33if (WIN32 AND NOT DEFINED Ice_WIN32_PLATFORM)
44 if (CMAKE_SIZEOF_VOID_P EQUAL 8)
5- set (Ice_WIN32_PLATFORM "x64" CACHE STRING "Ice library platform ( x64 or Win32) " )
5+ set (Ice_WIN32_PLATFORM "x64" DOC "Use x64 Ice library " )
66 else ()
7- set (Ice_WIN32_PLATFORM "Win32" CACHE STRING "Ice library platform (x64 or Win32) " )
7+ set (Ice_WIN32_PLATFORM "Win32" DOC "Use Win32 Ice library " )
88 endif ()
99endif ()
1010
1111find_path (Ice_INCLUDE_DIR NAMES Ice/Ice.h
1212 HINTS ${PACKAGE_PREFIX_DIR} ${PACKAGE_PREFIX_DIR} /build /native
13- PATH_SUFFIXES include CACHE PATH "Path to the Ice include directory "
13+ PATH_SUFFIXES include DOC "Directory containing Ice header files "
1414 NO_DEFAULT_PATH
1515 REQUIRED)
1616
@@ -19,11 +19,11 @@ if(NOT DEFINED Ice_VERSION)
1919 file (STRINGS "${Ice_INCLUDE_DIR} /Ice/Config.h" _ice_config_h_content REGEX "#define ICE_([A-Z]+)_VERSION " )
2020
2121 if ("${_ice_config_h_content} " MATCHES "#define ICE_STRING_VERSION \" ([^\" ]+)\" " )
22- set (Ice_VERSION "${CMAKE_MATCH_1} " CACHE STRING "Ice version" )
22+ set (Ice_VERSION "${CMAKE_MATCH_1} " DOC "Ice version" )
2323 endif ()
2424
2525 if ("${_ice_config_h_content} " MATCHES "#define ICE_SO_VERSION \" ([^\" ]+)\" " )
26- set (Ice_SO_VERSION "${CMAKE_MATCH_1} " CACHE STRING "Ice so version" )
26+ set (Ice_SO_VERSION "${CMAKE_MATCH_1} " DOC "Ice SO version" )
2727 endif ()
2828
2929 unset (_ice_config_h_content)
@@ -32,7 +32,7 @@ endif()
3232find_program (Ice_SLICE2CPP_EXECUTABLE slice2cpp
3333 HINTS ${PACKAGE_PREFIX_DIR}
3434 PATH_SUFFIXES bin tools
35- CACHE PATH "Path to the slice2cpp executable "
35+ DOC "Path to the slice2cpp compiler "
3636 NO_DEFAULT_PATH
3737 REQUIRED
3838)
@@ -47,7 +47,7 @@ find_path(Ice_SLICE_DIR
4747 NAMES Ice/Identity.ice
4848 HINTS ${PACKAGE_PREFIX_DIR}
4949 PATH_SUFFIXES slice share/ice/slice slice
50- CACHE PATH "Path to the Ice Slice files directory"
50+ DOC "Path to the Ice Slice files directory"
5151 NO_DEFAULT_PATH
5252 REQUIRED)
5353
0 commit comments