what does "CACHE STRING" in CMake CMakeLists file mean?

Viewed 12250

I came to this sentences in a CMakeLists file, I googled it but couldn't find relevant resources on the word CACHE STRING.

set(CMAKE_BUILD_TYPE Debug CACHE STRING "set build type to debug") 

What does it mean? And imho, isn't this quite obscure to use?

1 Answers
Related