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)
Read More:
- CMake Error at CMakeLists.txt:5 (PROJECT): The CMAKE_C_COMPILER: cl is not a full path
- Clion appears cmake error: could not find cmake_ Root! What is the problem and how to solve it?
- CMake Error: Could not find CMAKE_ROOT !!!
- CMake Error:Could not find CMAKE_ROOT!!!
- Inline JavaScript is not enabled. Is it set in your options?
- Visual slam Lesson 6: curve fitting with g2o, error: cmake error at CMakeList.txt (find_ package) By not providing“FindG2O.cmake“
- In windows, “cmake” is not an internal or external command, nor a runnable program or batch file.
- ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
- ERROR: JAVA_HOME is not set and could not be found.
- MYSQL:ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
- Linux (error 1819 (HY000): your password does not satisfy the current policy requirements)
- zookeeper Failed to Startup: Error: JAVA_HOME is not set and java could not be found in PATH
- C++: terminate called after throwing an instance of ‘std::length_error‘ (sort function cmp sorting rules problem)
- The problem that headers [‘content-type ‘] does not work is set in the Axios get method request interface
- MySQL 8 — error in setting simple password error 1819 (HY000): your password does not satisfy the current policy requirements
- The CXX compiler identification is unknown CMake Error at CMakeLists.txt:11 (project):
- Solution: when cmake is compiled, “error in configuration process project files may be invalid” appears
- The collapse pits of VTK projects that are not generated by cmake
- [Error] because it violates the following Content Security Policy directive
- CMake Error: The source directory “*” does not appear to contain CMakeLists.txt.