mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-12 05:48:51 -04:00
cmake: do not detect _GNU_SOURCE/__GNU_LIBRARY__ if it is cached
(cherry picked from commit 3ed93997387296e374d8a2dd770e43ddfa3328e9)
This commit is contained in:
parent
30020a3507
commit
b52c649875
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user