From e1b5ee24e95b05f0caa376a1706c4424e97cb78b Mon Sep 17 00:00:00 2001 From: selsta Date: Sat, 29 Aug 2020 03:32:10 +0200 Subject: [PATCH] cmake: remove already defined functions --- CMakeLists.txt | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 71fca00e..2322f76a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,31 +32,6 @@ set(BUILD_GUI_DEPS ON) set(ARCH "x86-64") set(BUILD_64 ON) -function (add_c_flag_if_supported flag var) - string(REPLACE "-" "_" supported ${flag}_c) - check_c_compiler_flag(${flag} ${supported}) - if(${${supported}}) - set(${var} "${${var}} ${flag}" PARENT_SCOPE) - endif() -endfunction() - -function (add_cxx_flag_if_supported flag var) - string(REPLACE "-" "_" supported ${flag}_cxx) - check_cxx_compiler_flag(${flag} ${supported}) - if(${${supported}}) - set(${var} "${${var}} ${flag}" PARENT_SCOPE) - endif() -endfunction() - -function (add_linker_flag_if_supported flag var) - string(REPLACE "-" "_" supported ${flag}_ld) - string(REPLACE "," "_" supported ${flag}_ld) - check_linker_flag(${flag} ${supported}) - if(${${supported}}) - set(${var} "${${var}} ${flag}" PARENT_SCOPE) - endif() -endfunction() - find_package(Git) if(GIT_FOUND) if(NOT DEV_MODE)