cmake CMakeList.txt on Linux failed

To fix this bug, try this:

On Line 11:

cmake_policy(SET CMP0025 NEW) #fixes error No known features for CXX compiler (on mac)

Change it to this one:

IF(APPLE)
   cmake_policy(SET CMP0025 NEW) #fixes error No known features for CXX compiler (on mac)
ENDIF(APPLE)

After this change you can compile on Linux (Tested on Ubuntu 14.04)

Edited by Mohcine Chraibi