Your team is right.
However, it seems that to change the type of the variable you need to close cmake-gui.exe, delete the variable from CMakeCache.txt (or delete the entire file), and then re-open cmake-gui.exe
Another possibility is that you set the same value before the type STRING (in this case, the first type is saved):
SET(LIBRARY_INCLUDE_DIR "something" CACHE STRING "Location of libraries") SET(LIBRARY_INCLUDE_DIR "something" CACHE PATH "Location of libraries")
otherwise you unset change the same value and set to a different type:
SET(LIBRARY_INCLUDE_DIR "something" CACHE PATH "Location of libraries") UNSET(LIBRARY_INCLUDE_DIR CACHE) SET(LIBRARY_INCLUDE_DIR "something" CACHE STRING "Location of libraries")
source share