aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorClaes Nästén <pekdon@gmail.com>2021-12-06 07:43:44 +0100
committerClaes Nästén <pekdon@gmail.com>2021-12-06 08:18:02 +0100
commitb8ae43dd24dcc81779c87d81244ab539f9107fa2 (patch)
tree907579074f3edcd82a13cd6b3ca61637a6665ad3 /src
parent9b65a7e06438c3b407ad7136a30c0a5281f2174f (diff)
downloadrneovim-b8ae43dd24dcc81779c87d81244ab539f9107fa2.tar.gz
rneovim-b8ae43dd24dcc81779c87d81244ab539f9107fa2.tar.bz2
rneovim-b8ae43dd24dcc81779c87d81244ab539f9107fa2.zip
fix: skip libutil on SunOS
libutil is not available on Solaris variants, even on Solaris 11 where forkpty is available.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/CMakeLists.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt
index 185d55daed..bb16459a7f 100644
--- a/src/nvim/CMakeLists.txt
+++ b/src/nvim/CMakeLists.txt
@@ -468,9 +468,11 @@ list(APPEND NVIM_LINK_LIBRARIES
if(UNIX)
list(APPEND NVIM_LINK_LIBRARIES
- m
- util
- )
+ m)
+ if (NOT CMAKE_SYSTEM_NAME STREQUAL "SunOS")
+ list(APPEND NVIM_LINK_LIBRARIES
+ util)
+ endif()
endif()
set(NVIM_EXEC_LINK_LIBRARIES ${NVIM_LINK_LIBRARIES} ${LUA_PREFERRED_LIBRARIES})