Skip to content

Commit

Permalink
fix cmake deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
d99kris committed Oct 21, 2023
1 parent 996dcff commit 7625b75
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Project
cmake_minimum_required(VERSION 3.16 FATAL_ERROR) # 3.1 is ok, but is 3.16 needed for proper version string
cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
project(nchat LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 14)
include(CheckCXXSourceCompiles)
Expand Down
2 changes: 1 addition & 1 deletion ext/clip/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Clip Library
# Copyright (c) 2015-2021 David Capello

cmake_minimum_required(VERSION 3.1.2)
cmake_minimum_required(VERSION 3.16)

project(clip LANGUAGES CXX)

Expand Down
2 changes: 1 addition & 1 deletion lib/common/src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@

#pragma once

#define NCHAT_VERSION "3.92"
#define NCHAT_VERSION "3.93"
2 changes: 1 addition & 1 deletion lib/tgchat/ext/td/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR)
cmake_minimum_required(VERSION 3.16 FATAL_ERROR)

if (POLICY CMP0065)
# do not export symbols from executables
Expand Down
2 changes: 1 addition & 1 deletion lib/tgchat/ext/td/td/generate/tl-parser/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
cmake_minimum_required(VERSION 3.16 FATAL_ERROR)

if (POLICY CMP0065)
# do not export symbols from executables
Expand Down
2 changes: 1 addition & 1 deletion src/nchat.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man.
.TH NCHAT "1" "October 2023" "nchat v3.92" "User Commands"
.TH NCHAT "1" "October 2023" "nchat v3.93" "User Commands"
.SH NAME
nchat \- ncurses chat
.SH SYNOPSIS
Expand Down
2 changes: 2 additions & 0 deletions utils/tdlib-update
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ EOT
${SEDCMD} -E -i -e "s/virtual void store\(TlStorerUnsafe \&s\)/virtual void store\(TlStorerUnsafe \&\)/g" lib/tgchat/ext/td/td/tl/TlObject.h
${SEDCMD} -E -i -e "s/virtual void store\(TlStorerCalcLength \&s\)/virtual void store\(TlStorerCalcLength \&\)/g" lib/tgchat/ext/td/td/tl/TlObject.h
${SEDCMD} -E -i -e "s/^static const int s_TdlibDate.*$/static const int s_TdlibDate = ${NEWDATE};/g" lib/tgchat/src/tgchat.cpp
${SEDCMD} -E -i -e "s/^cmake_minimum_required\(VERSION 3\.0.*$/cmake_minimum_required\(VERSION 3.16 FATAL_ERROR\)/g" lib/tgchat/ext/td/CMakeLists.txt
${SEDCMD} -E -i -e "s/^cmake_minimum_required\(VERSION 3\.0.*$/cmake_minimum_required\(VERSION 3.16 FATAL_ERROR\)/g" lib/tgchat/ext/td/td/generate/tl-parser/CMakeLists.txt

# Complete
echo "Done"
Expand Down

0 comments on commit 7625b75

Please sign in to comment.