I try to use gmake instead of make as the build command. So I modify the CMakeList.txt as following:
......
set(CMAKE_MAKE_PROGRAM /usr/local/bin/gmake)
......
While in CMakeCache.txt, CMAKE_MAKE_PROGRAM is still /usr/bin/make:
//Path to a program.
CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make
How to make "CMAKE_MAKE_PROGRAM" variable take effect?
set(... CACHE FORCE)?set given invalid arguments for CACHE mode.".