From 9a0b29b7125a5615e46f474fb7add46dfd09dfc6 Mon Sep 17 00:00:00 2001 From: Nic Barker Date: Sat, 28 Sep 2024 16:13:31 +1200 Subject: [PATCH] fix cache and msvc --- .github/workflows/cmake-multi-platform.yml | 2 +- examples/clay-official-website/CMakeLists.txt | 2 ++ examples/raylib-sidebar-scrolling-container/CMakeLists.txt | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index 6acd706..0c05d91 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -58,7 +58,7 @@ jobs: uses: actions/cache@v4.0.2 with: # A list of files, directories, and wildcard patterns to cache and restore - path: "_deps" + path: "/home/runner/work/clay/clay/build/_deps/raylib-subbuild" # An explicit key for restoring and saving the cache key: "_deps" diff --git a/examples/clay-official-website/CMakeLists.txt b/examples/clay-official-website/CMakeLists.txt index 65087bb..bca47c8 100644 --- a/examples/clay-official-website/CMakeLists.txt +++ b/examples/clay-official-website/CMakeLists.txt @@ -5,7 +5,9 @@ set(CMAKE_C_STANDARD 99) add_executable(clay_official_website main.c) +if(!MSVC) target_compile_options(clay_official_website PUBLIC -Wall -Werror -Wno-unknown-pragmas) +endif() target_include_directories(clay_official_website PUBLIC .) set(CMAKE_CXX_FLAGS_RELEASE "-O3") \ No newline at end of file diff --git a/examples/raylib-sidebar-scrolling-container/CMakeLists.txt b/examples/raylib-sidebar-scrolling-container/CMakeLists.txt index 7fe58fd..1499b58 100644 --- a/examples/raylib-sidebar-scrolling-container/CMakeLists.txt +++ b/examples/raylib-sidebar-scrolling-container/CMakeLists.txt @@ -21,7 +21,9 @@ set(CMAKE_C_STANDARD 99) add_executable(clay_examples_raylib_sidebar_scrolling_container main.c multi-compilation-unit.c) +if(!MSVC) target_compile_options(clay_examples_raylib_sidebar_scrolling_container PUBLIC -Wall -Werror -Wno-unknown-pragmas) +endif() target_include_directories(clay_examples_raylib_sidebar_scrolling_container PUBLIC .) target_link_libraries(clay_examples_raylib_sidebar_scrolling_container PUBLIC raylib)