cmake: do not detect _GNU_SOURCE/__GNU_LIBRARY__ if it is cached

(cherry picked from commit 3ed93997387296e374d8a2dd770e43ddfa3328e9)
This commit is contained in:
Azat Khuzhin 2018-11-04 19:48:11 +03:00 committed by Azat Khuzhin
parent 30020a3507
commit b52c649875
No known key found for this signature in database
GPG Key ID: B86086848EF8686D

View File

@ -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)