To use Strawberry perl with cmake
execute this in Powershell or command prompt (both)
cmake .. -G "MinGW Makefiles" -D CMAKE_C_COMPILER="C:/Strawberry/c/bin/gcc.exe"
-D CMAKE_MAKE_PROGRAM="C:/Strawberry/c/bin/gmake.exe"
The problem is due to not locating make
program because doing
cmake .. -G "MinGW Makefiles" -D CMAKE_MAKE_PROGRAM="C:/Strawberry/c/bin/gmake.exe"
works great.