From 122373ef355eacd2c732a66c68c83e70832d8c38 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 74adcee1a9..260d696ca0 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()