From Chris White, Cygwin build fix

This commit is contained in:
Robert Osfield 2018-08-08 14:42:04 +01:00
parent 15f2ae8d15
commit ed13576d03

View File

@ -20,6 +20,11 @@ SET(TARGET_SRC
../common/Version.cpp
../common/Atomic.cpp
)
IF(CYGWIN) # define for pthread_{yield,getconcurrency,setconcurrency}
ADD_DEFINITIONS(-D_GNU_SOURCE)
ENDIF()
IF(ANDROID)
ADD_DEFINITIONS(-D_GNU_SOURCE)
SET(CMAKE_REQUIRED_DEFINITIONS "${CMAKE_REQUIRED_DEFINITIONS} -D_GNU_SOURCE")