From 2a71e681dbe8e1b2cdcd8ed4f1cc0e064aaf6c3d Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Thu, 17 Aug 2023 11:34:57 +0200 Subject: [PATCH] cmake: Cache CUSTOM_COMPILE_OPTIONS This allows persisting custom flags across builds, as intended. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 74adcee1a..260d696ca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,6 +23,10 @@ set(PROJECT_VERSION_TIMESTAMP "" CACHE STRING "Timestamp for the build. Resolved automatically if not specified." ) +set(CUSTOM_COMPILE_OPTIONS + "" + CACHE STRING "Allows adding custom C/C++ flags" + ) include(cmake/ProjectVersion.cmake) resolve_version_variables()