Fixed some variable usage in the a CMake file.