Create the build directory and enter there:
$ mkdir build && cd build
$ cmake .. -DCMAKE_CXX_COMPILER=icc -DCMAKE_C_COMPILER=icc
$ cmake ..
$ cmake -DCMAKE_BUILD_TYPE=Debug ..
now you should be able to compile using make
.
Create the build directory and enter there:
$ mkdir build && cd build
$ cmake .. -DCMAKE_CXX_COMPILER=icc -DCMAKE_C_COMPILER=icc
$ cmake ..
$ cmake -DCMAKE_BUILD_TYPE=Debug ..
now you should be able to compile using make
.