mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-04 13:48:35 -06:00
Merge topic 'solaris-build-fixes'
b7f0b124libuv requires _XOPEN_SOURCE 600 on Solaris 11ba8bb321Disable libuv on Solaris 10
This commit is contained in:
@@ -510,6 +510,9 @@ int main(void) { return 0; }
|
||||
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "sparc")
|
||||
# Disable until it can be ported.
|
||||
set(CMAKE_USE_LIBUV 0)
|
||||
elseif(CMAKE_SYSTEM STREQUAL "SunOS-5.10")
|
||||
# Disable until it can be ported.
|
||||
set(CMAKE_USE_LIBUV 0)
|
||||
endif()
|
||||
endif()
|
||||
if(CMAKE_USE_LIBUV)
|
||||
|
||||
@@ -218,8 +218,16 @@ if(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
|
||||
)
|
||||
list(APPEND uv_defines
|
||||
__EXTENSIONS__
|
||||
_XOPEN_SOURCE=500
|
||||
)
|
||||
if(CMAKE_SYSTEM_VERSION STREQUAL "5.10")
|
||||
list(APPEND uv_defines
|
||||
_XOPEN_SOURCE=500
|
||||
)
|
||||
else()
|
||||
list(APPEND uv_defines
|
||||
_XOPEN_SOURCE=600
|
||||
)
|
||||
endif()
|
||||
list(APPEND uv_sources
|
||||
src/unix/sunos.c
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user