mirror of
https://github.com/tsl0922/ttyd.git
synced 2026-01-06 02:44:21 +01:00
cmake: add check for util lib
This commit is contained in:
@@ -82,8 +82,11 @@ if(WIN32)
|
||||
list(APPEND LINK_LIBS shell32 ws2_32)
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/app.rc.in ${CMAKE_CURRENT_BINARY_DIR}/app.rc @ONLY)
|
||||
list(APPEND SOURCE_FILES ${CMAKE_CURRENT_BINARY_DIR}/app.rc)
|
||||
elseif(NOT APPLE)
|
||||
list(APPEND LINK_LIBS util)
|
||||
else()
|
||||
find_library(LIBUTIL NAMES util)
|
||||
if(LIBUTIL)
|
||||
list(APPEND LINK_LIBS util)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
add_executable(${PROJECT_NAME} ${SOURCE_FILES})
|
||||
|
||||
Reference in New Issue
Block a user