summaryrefslogtreecommitdiffstats
path: root/Utilities/cmlibuv
diff options
context:
space:
mode:
authorElad Lahav <e2lahav@gmail.com>2020-09-07 16:42:32 (GMT)
committerBrad King <brad.king@kitware.com>2020-09-25 15:53:44 (GMT)
commitf9e950d4c5e8b7ecd5418dacfd5d6be500e6d738 (patch)
tree6b369bc64c2dbc139f4689f052f43ca4996db05d /Utilities/cmlibuv
parentc98ec731f90eb0180c89108b7d2e42263b66d1ed (diff)
downloadCMake-f9e950d4c5e8b7ecd5418dacfd5d6be500e6d738.zip
CMake-f9e950d4c5e8b7ecd5418dacfd5d6be500e6d738.tar.gz
CMake-f9e950d4c5e8b7ecd5418dacfd5d6be500e6d738.tar.bz2
libuv: Add support for building for QNX within CMake
Diffstat (limited to 'Utilities/cmlibuv')
-rw-r--r--Utilities/cmlibuv/CMakeLists.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/Utilities/cmlibuv/CMakeLists.txt b/Utilities/cmlibuv/CMakeLists.txt
index 7625cf6..92d2411 100644
--- a/Utilities/cmlibuv/CMakeLists.txt
+++ b/Utilities/cmlibuv/CMakeLists.txt
@@ -336,6 +336,24 @@ if(CMAKE_SYSTEM_NAME STREQUAL "HP-UX")
)
endif()
+if(CMAKE_SYSTEM_NAME STREQUAL "QNX")
+ list(APPEND uv_headers
+ include/uv/posix.h
+ )
+ list(APPEND uv_defines
+ _XOPEN_SOURCE=700
+ )
+ list(APPEND uv_sources
+ src/unix/posix-hrtime.c
+ src/unix/posix-poll.c
+ src/unix/no-fsevents.c
+ src/unix/no-proctitle.c
+ )
+ list(APPEND uv_libraries
+ socket
+ )
+endif()
+
include_directories(
${uv_includes}
${KWSYS_HEADER_ROOT}