diff options
author | Azat Khuzhin <azat@libevent.org> | 2022-11-20 22:18:37 +0100 |
---|---|---|
committer | Azat Khuzhin <azat@libevent.org> | 2022-11-20 22:19:21 +0100 |
commit | 82af0ea4eeb61466fabcd04dfcedee06a1ce3204 (patch) | |
tree | 6990e78a17305fd6d271185ea674d7b23f7f4f89 /CMakeLists.txt | |
parent | 097af7b7565688f8f982f6b118ac228166a56c5f (diff) | |
download | libevent-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
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 1 |
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() |