summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzat Khuzhin <azat@libevent.org>2022-11-20 22:18:37 +0100
committerAzat Khuzhin <azat@libevent.org>2022-11-20 22:19:21 +0100
commit82af0ea4eeb61466fabcd04dfcedee06a1ce3204 (patch)
tree6990e78a17305fd6d271185ea674d7b23f7f4f89
parent097af7b7565688f8f982f6b118ac228166a56c5f (diff)
downloadlibevent-82af0ea4eeb61466fabcd04dfcedee06a1ce3204.tar.gz
cmake: remove redundant _GNU_SOURCE definition
As reported by @francoisk: `_GNU_SOURCE` is defined in the private config header but also on the compiler command-line for every object. Fixes: #1333
-rw-r--r--CMakeLists.txt1
1 files changed, 0 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 65cfedab..07afc767 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -397,7 +397,6 @@ if (NOT DEFINED _GNU_SOURCE)
endif()
if (_GNU_SOURCE)
- add_definitions(-D_GNU_SOURCE=1)
set(CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE)
endif()