diff options
| -rw-r--r-- | src/nvim/CMakeLists.txt | 8 | 
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})  | 
