set: Cannot assign the string "CACHE" to a variable
This simple project fails to display the expected value (value is empty):
cmake_minimum_required(VERSION 3.19)
project(MyProj)
set(myvar "CACHE")
message("myvar: ${myvar}")
I tried also with [=[
comments, but it still fails.
Note: as a result, cmake_print_properties(CACHE_ENTRIES ...)
from the module CMakePrintHelpers
always fails.