Changed to match updated CMake functions.