facebook/hhvm — pull request #3601 by glensc (2014-08-27 18:06:26+00:00)
Title: handle cmake & ccache

one place missed CMAKE_CXX_COMPILER_ARG1 support,

this allows to call cmake as:
cmake -D CMAKE_CXX_COMPILER="ccache" -D CMAKE_CXX_COMPILER_ARG1="g++"

http://stackoverflow.com/questions/1815688/how-to-use-ccache-with-cmake