From 83e352d0db254de863ba5e3e2f857ad3840b9096 Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Wed, 2 Jun 2021 12:02:15 +0200 Subject: Fix CMake deprecation warning fixes https://github.com/AyatanaIndicators/ayatana-indicator-session/issues/37 --- CMakeLists.txt | 4 ++-- cmake/GdbusCodegen.cmake | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3d43114..53ff26e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ project (ayatana-indicator-session C CXX) -cmake_minimum_required (VERSION 2.8.9) +cmake_minimum_required (VERSION 3.13) list (APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) @@ -19,7 +19,7 @@ endif() ## ## GNU standard installation directories -## +## include (GNUInstallDirs) set (CMAKE_INSTALL_PKGLIBEXECDIR "${CMAKE_INSTALL_LIBEXECDIR}/${CMAKE_PROJECT_NAME}") set (CMAKE_INSTALL_FULL_PKGLIBEXECDIR "${CMAKE_INSTALL_FULL_LIBEXECDIR}/${CMAKE_PROJECT_NAME}") diff --git a/cmake/GdbusCodegen.cmake b/cmake/GdbusCodegen.cmake index ddb2995..5261ba8 100644 --- a/cmake/GdbusCodegen.cmake +++ b/cmake/GdbusCodegen.cmake @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.6) +cmake_minimum_required(VERSION 3.13) if(POLICY CMP0011) cmake_policy(SET CMP0011 NEW) endif(POLICY CMP0011) -- cgit v1.2.3