diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-09-02 08:36:00 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-09-02 08:36:00 +0000 |
commit | 01b623a2f80953e6156ede3f0f082ebb4a5cf0c8 (patch) | |
tree | 77c2df3aa8e4730cd15d083e1217d08a12f3179b /CMakeLists.txt | |
parent | Adding upstream version 1.7.0. (diff) | |
download | ttyd-upstream/1.7.1.tar.xz ttyd-upstream/1.7.1.zip |
Adding upstream version 1.7.1.upstream/1.7.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | CMakeLists.txt | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index aa0d4e4..919c983 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,15 @@ cmake_minimum_required(VERSION 2.8) -project(ttyd C) -set(PROJECT_VERSION "1.7.0") +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 "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}") +else() + cmake_policy(SET CMP0048 NEW) + project(ttyd VERSION 1.7.1 LANGUAGES C) +endif() find_package(Git) if(GIT_FOUND) @@ -72,6 +80,8 @@ endif() 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) endif() |