Updated to match revised CMake functions.