Fix CMake linux dedicated on gcc and Clang

Required for CI server #677.