diff options
author | Brad King <brad.king@kitware.com> | 2020-03-06 19:25:50 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-03-06 19:25:50 (GMT) |
commit | 2c3cf6371fc35f518a66d5f3c9deeda5748f262b (patch) | |
tree | 2bde7e64424878118ef3a753382bcbab0d90902b | |
parent | 2de860513ddb71f4c53769bb2979b35337057fa5 (diff) | |
parent | 7d6bd14dcaaae82fd90f180490dc0e2c8d63b7f7 (diff) | |
download | CMake-2c3cf6371fc35f518a66d5f3c9deeda5748f262b.zip CMake-2c3cf6371fc35f518a66d5f3c9deeda5748f262b.tar.gz CMake-2c3cf6371fc35f518a66d5f3c9deeda5748f262b.tar.bz2 |
Merge branch 'ibmi-fix-libuv-build' into release-3.16
Merge-request: !4431
-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 ) |