From a4d055b3ac17882f46423e55c50dd5e0304312da Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Thu, 4 Nov 2021 00:05:06 +0100 Subject: [PATCH] Remove obsolete cmake version check --- 3rdparty/singleapplication/CMakeLists.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/3rdparty/singleapplication/CMakeLists.txt b/3rdparty/singleapplication/CMakeLists.txt index a5f29470..96525080 100644 --- a/3rdparty/singleapplication/CMakeLists.txt +++ b/3rdparty/singleapplication/CMakeLists.txt @@ -3,10 +3,8 @@ cmake_minimum_required(VERSION 3.0) include(CheckIncludeFiles) include(CheckFunctionExists) -if(CMAKE_VERSION VERSION_GREATER 3.0) - check_function_exists(geteuid HAVE_GETEUID) - check_function_exists(getpwuid HAVE_GETPWUID) -endif() +check_function_exists(geteuid HAVE_GETEUID) +check_function_exists(getpwuid HAVE_GETPWUID) set(SINGLEAPP-SOURCES singleapplication.cpp singleapplication_p.cpp) set(SINGLEAPP-MOC-HEADERS singleapplication.h singleapplication_p.h)