diff options
author | Brad King <brad.king@kitware.com> | 2020-03-09 12:58:27 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-03-09 12:58:38 (GMT) |
commit | 6857aaaa062f3526fc54438472fe676bcda5842e (patch) | |
tree | 647733991271f5c4cc692e34d53c5f6c9650a882 /Utilities | |
parent | b7d43ea0da43aa8fcb7cbe846469d555d2877f36 (diff) | |
parent | 7d6bd14dcaaae82fd90f180490dc0e2c8d63b7f7 (diff) | |
download | CMake-6857aaaa062f3526fc54438472fe676bcda5842e.zip CMake-6857aaaa062f3526fc54438472fe676bcda5842e.tar.gz CMake-6857aaaa062f3526fc54438472fe676bcda5842e.tar.bz2 |
Merge topic 'ibmi-fix-libuv-build' into release-3.17
7d6bd14dca libuv: Add support for building on IBM i (OS400)
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4431
Diffstat (limited to 'Utilities')
-rw-r--r-- | Utilities/cmlibuv/CMakeLists.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Utilities/cmlibuv/CMakeLists.txt b/Utilities/cmlibuv/CMakeLists.txt index fe2ef75..7625cf6 100644 --- a/Utilities/cmlibuv/CMakeLists.txt +++ b/Utilities/cmlibuv/CMakeLists.txt @@ -137,6 +137,25 @@ if(CMAKE_SYSTEM_NAME STREQUAL "AIX") ) endif() +if(CMAKE_SYSTEM_NAME STREQUAL "OS400") + list(APPEND uv_headers + include/uv/posix.h + ) + list(APPEND uv_defines + _ALL_SOURCE + _XOPEN_SOURCE=500 + _LINUX_SOURCE_COMPAT + _THREAD_SAFE + ) + list(APPEND uv_sources + src/unix/aix-common.c + src/unix/ibmi.c + src/unix/posix-poll.c + src/unix/no-fsevents.c + src/unix/no-proctitle.c + ) +endif() + if(CMAKE_SYSTEM_NAME MATCHES "CYGWIN") list(APPEND uv_libraries ) |