There is a difference between: if(NOT DEFINED VAR_NAME) and if(NOT DEFINED ${VAR_NAME})
The first one refers to the variable and the other to its content.
There is a difference between: if(NOT DEFINED VAR_NAME) and if(NOT DEFINED ${VAR_NAME})
The first one refers to the variable and the other to its content.