fix: skip libutil on SunOS

libutil is not available on Solaris variants, even on Solaris 11 where
forkpty is available.
This commit is contained in:
Claes Nästén 2021-12-06 07:43:44 +01:00
parent 9b65a7e064
commit b8ae43dd24

View File

@ -468,9 +468,11 @@ list(APPEND NVIM_LINK_LIBRARIES
if(UNIX) if(UNIX)
list(APPEND NVIM_LINK_LIBRARIES list(APPEND NVIM_LINK_LIBRARIES
m m)
util if (NOT CMAKE_SYSTEM_NAME STREQUAL "SunOS")
) list(APPEND NVIM_LINK_LIBRARIES
util)
endif()
endif() endif()
set(NVIM_EXEC_LINK_LIBRARIES ${NVIM_LINK_LIBRARIES} ${LUA_PREFERRED_LIBRARIES}) set(NVIM_EXEC_LINK_LIBRARIES ${NVIM_LINK_LIBRARIES} ${LUA_PREFERRED_LIBRARIES})