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")