GNU_SOURCE is not a compiler flag

This line in DefineCompilerFlags.cmake always passed:
    check_c_compiler_flag("-D_GNU_SOURCE" WITH_GNU_SOURCE)
because -D$string just defined a preprocessor macro, so the compilation
would always succeed.

On UNIX platforms, with GCC or LLVM compilers, we want to always use
GNU_SOURCE.
1 file changed