Handle empty variables for CMake