From fad3f7f1e9569d8c5dacd3a95601c5bc3c74ab03 Mon Sep 17 00:00:00 2001 From: Jose Luis Barros Fernandez Date: Mon, 18 Sep 2023 11:20:44 +0200 Subject: [PATCH] Linux conf --- .github/workflows/style_check.yml | 6 ++++++ cmake/{SetCxxFlagsRelease.cmake => ConfigureLinux.cmake} | 9 ++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) rename cmake/{SetCxxFlagsRelease.cmake => ConfigureLinux.cmake} (79%) diff --git a/.github/workflows/style_check.yml b/.github/workflows/style_check.yml index e7aab83..23be15d 100644 --- a/.github/workflows/style_check.yml +++ b/.github/workflows/style_check.yml @@ -33,3 +33,9 @@ jobs: mkdir build && cd build cmake ../ make cmake-format-check + + - name: Checks clang format + run: | + mkdir build && cd build + cmake ../ + make format diff --git a/cmake/SetCxxFlagsRelease.cmake b/cmake/ConfigureLinux.cmake similarity index 79% rename from cmake/SetCxxFlagsRelease.cmake rename to cmake/ConfigureLinux.cmake index 7b98a16..36c82e6 100644 --- a/cmake/SetCxxFlagsRelease.cmake +++ b/cmake/ConfigureLinux.cmake @@ -12,6 +12,9 @@ # See the License for the specific language governing permissions and # limitations under the License. -macro(set_cxx_flags_release opt_flag) - string(APPEND CMAKE_CXX_FLAGS_RELEASE " ${opt_flag}") -endmacro() +include(SetCxxStandard) +set_cxx_standard(11) + +set(KPSR_COMPILE_SPDLOG + true + CACHE BOOL "Compile spdlog as lib or use header only version")