cmake/flatpak: prefer using a target to a bool variable
-
Developer
What are the advantages of if (TARGET ...) over if (package_FOUND)?
-
Author Developer
Sorry Vlad, missed your question. I prefer targets because it's the only thing we need: it has all the information like includes, compile definitions etc while a variable is something volatile that can even sometimes be cached and unreliable.
Please register or sign in to comment