Updated to match changed CMake functions.