Skip to content

Commit

Permalink
fix cache and msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
nicbarker committed Sep 28, 2024
1 parent b533c32 commit 9a0b29b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
uses: actions/[email protected]
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"

Expand Down
2 changes: 2 additions & 0 deletions examples/clay-official-website/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
2 changes: 2 additions & 0 deletions examples/raylib-sidebar-scrolling-container/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9a0b29b

Please sign in to comment.