Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted
Refer to prompt cause solution
reference resources
How to use variables and avoid CMP0054 policy violations?CMP0054
Prompt reason
Note: You only get the CMP0054 warning if the context of your variable was actually evaluated again (so it’s a hint your CMake code will not work in those places).
solve
cmake_policy(SET CMP0054 NEW)