summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt11
1 files changed, 7 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 919c983..85f8bdc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,11 +4,11 @@ if(${CMAKE_VERSION} VERSION_LESS "3.12.0")
project(ttyd C)
set(PROJECT_VERSION_MAJOR "1")
set(PROJECT_VERSION_MINOR "7")
- set(PROJECT_VERSION_PATCH "1")
+ set(PROJECT_VERSION_PATCH "2")
set(PROJECT_VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")
else()
cmake_policy(SET CMP0048 NEW)
- project(ttyd VERSION 1.7.1 LANGUAGES C)
+ project(ttyd VERSION 1.7.2 LANGUAGES C)
endif()
find_package(Git)
@@ -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})