Browse Source

keepassxc-git: add missing file

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
master
Steven Noonan 10 months ago
parent
commit
c9c97f2271
Signed by: steven GPG Key ID: 408EEB508ED0CD4D
  1. 24
      keepassxc-git/ipo-support.patch

24
keepassxc-git/ipo-support.patch

@ -0,0 +1,24 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f98aa179..5b74628b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -14,7 +14,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-cmake_minimum_required(VERSION 3.3.0)
+cmake_minimum_required(VERSION 3.9)
project(KeePassXC)
@@ -31,6 +31,10 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
include(CMakeToolsHelpers OPTIONAL)
include(FeatureSummary)
+include(CheckIPOSupported)
+check_ipo_supported()
+set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ON)
+
include(CheckCCompilerFlag)
include(CheckCXXCompilerFlag)
include(CheckCXXSourceCompiles)
Loading…
Cancel
Save