diff --git a/CMakeLists.txt b/CMakeLists.txt index 48885a32..ae0be78d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -256,7 +256,7 @@ if (SOLARIS) endif() # Check if _GNU_SOURCE is available. -if (NOT _GNU_SOURCE) +if (NOT DEFINED _GNU_SOURCE) CHECK_SYMBOL_EXISTS(__GNU_LIBRARY__ "features.h" _GNU_SOURCE) if (NOT _GNU_SOURCE)