Use ${CMAKE} instead of cmake.