Skip to content

Commit

Permalink
cmake: remove redundant _GNU_SOURCE definition
Browse files Browse the repository at this point in the history
As reported by @francoisk:

    `_GNU_SOURCE` is defined in the private config header but also on the
    compiler command-line for every object.

Fixes: libevent#1333
  • Loading branch information
azat committed Nov 20, 2022
1 parent 097af7b commit 82af0ea
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 82af0ea

Please sign in to comment.