Skip to content

CMakeLists.txt: Don't use '${}' with variables in if-clauses. Variable...

Mike Gabriel requested to merge personal/sunweaver/cmake-if-clauses into main

CMakeLists.txt: Don't use '${}' with variables in if-clauses. Variable expansion in if-clauses works without it.

The '${}' can lead to unwanted side-effects, so better not use it. . See: https://cmake.org/cmake/help/latest/command/if.html#variable-expansion

Merge request reports