diff options
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/os/Linux.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/os/Linux.cmake b/cmake/os/Linux.cmake index 10d3a719609..13fa1c3f148 100644 --- a/cmake/os/Linux.cmake +++ b/cmake/os/Linux.cmake @@ -22,6 +22,7 @@ INCLUDE(CheckSymbolExists) SET(TARGET_OS_LINUX 1) SET(HAVE_NPTL 1) SET(_GNU_SOURCE 1) +SET(CMAKE_REQUIRED_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS} -D_GNU_SOURCE=1) # Fix CMake (< 2.8) flags. -rdynamic exports too many symbols. FOREACH(LANG C CXX) |