CMake Gotchas
CMake Gotchas When working with CMake, never assume you know how something works. Guessing can easily lead you into a subtle “feature” trap. Important Notes Common Pitfalls When Testing Environment Variables or Strings Refer to the official documentation section on : A quoted string always evaluates to false unless: The string’s value is one of the true constants, or Policy CMP0054 is not set to NEW and the string’s value happens to be a variable name that is affected by CMP0054’s behavior. A quoted string always evaluates to false, unless: ...