Support cmake mode.