From addb00907ee1b906bf5be1fbce7fab3e9d3edb1c Mon Sep 17 00:00:00 2001 From: McMassiveNZ <12842622+McMassiveNZ@users.noreply.github.com> Date: Tue, 6 Dec 2022 23:28:08 +0100 Subject: [PATCH] Blind fix for failing linux Blind fix for Linux failing to generate a CMake project on the CI --- CMakeLists.txt | 8 +++++--- test/CMakeLists.txt | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 388de9b..50107bc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,9 +17,11 @@ OPTION(ENABLE_WARNINGS_AS_ERRORS "Warnings are treated as Errors" ON) OPTION(ENABLE_STATIC_ANALYSIS "Enable Static Analysis Tools" ON) OPTION(ENABLE_SANITIZERS "Enable Sanitizer Tools" ON) -include(scripts/compilerWarnings.cmake) -include(scripts/sanitizers.cmake) -include(scripts/staticanalysis.cmake) +set(SCRIPTS_DIR ${CMAKE_CURRENT_LIST_DIR}/scripts) + +include(${SCRIPTS_DIR}/compilerWarnings.cmake) +include(${SCRIPTS_DIR}/sanitizers.cmake) +include(${SCRIPTS_DIR}/staticanalysis.cmake) if (ENABLE_TESTS) message("Unit Testing Enabled") diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 3379e12..5568e17 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,4 +1,4 @@ -include(${CMAKE_SOURCE_DIR}/scripts/googletest.cmake) +include(${SCRIPTS_DIR}/googletest.cmake) add_executable( blank-slate-test