mirror of
https://github.com/nicbarker/clay.git
synced 2025-04-18 20:28:01 +00:00
cmake actually doesn't support CC flags so we should use the C flags
This commit is contained in:
parent
0e11fcd7d9
commit
24be9bcfc4
@ -34,8 +34,8 @@ target_link_libraries(SDL2_video_demo PUBLIC
|
||||
SDL2_ttf::SDL2_ttf-static
|
||||
)
|
||||
|
||||
set(CMAKE_CC_FLAGS_DEBUG "-Wall -Werror -Wno-error=missing-braces -DCLAY_DEBUG")
|
||||
set(CMAKE_CC_FLAGS_RELEASE "-O3")
|
||||
set(CMAKE_C_FLAGS_DEBUG "-Wall -Werror -Wno-error=missing-braces -DCLAY_DEBUG")
|
||||
set(CMAKE_C_FLAGS_RELEASE "-O3")
|
||||
|
||||
add_custom_command(
|
||||
TARGET SDL2_video_demo POST_BUILD
|
||||
|
@ -8,4 +8,4 @@ add_executable(clay_official_website main.c)
|
||||
target_compile_options(clay_official_website PUBLIC -Wall -Werror -Wno-unknown-pragmas -Wno-error=missing-braces)
|
||||
target_include_directories(clay_official_website PUBLIC .)
|
||||
|
||||
set(CMAKE_C_FLAGS_RELEASE "-O3")
|
||||
set(CMAKE_C_FLAGS_RELEASE "-O3")
|
@ -24,6 +24,7 @@ target_compile_options(clay_examples_introducing_clay_video_demo PUBLIC)
|
||||
target_include_directories(clay_examples_introducing_clay_video_demo PUBLIC .)
|
||||
|
||||
target_link_libraries(clay_examples_introducing_clay_video_demo PUBLIC raylib)
|
||||
<<<<<<< HEAD
|
||||
|
||||
set(CMAKE_C_FLAGS_DEBUG "-Wall -Werror -Wno-error=missing-braces -DCLAY_DEBUG")
|
||||
set(CMAKE_C_FLAGS_RELEASE "-O3")
|
||||
|
Loading…
Reference in New Issue
Block a user