Updated to match new usage of CMake.