Remove obsolete cmake version check

This commit is contained in:
Jonas Kvinge 2021-11-04 00:05:06 +01:00
parent e6ae6c6f04
commit a4d055b3ac
1 changed files with 2 additions and 4 deletions

View File

@ -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)