diff --git a/examples/SDL2-video-demo/CMakeLists.txt b/examples/SDL2-video-demo/CMakeLists.txt index b058ddb..49643c2 100644 --- a/examples/SDL2-video-demo/CMakeLists.txt +++ b/examples/SDL2-video-demo/CMakeLists.txt @@ -33,8 +33,8 @@ target_link_libraries(SDL2_video_demo PUBLIC SDL2::SDL2-static SDL2_ttf::SDL2_ttf-static ) -set(CMAKE_CXX_FLAGS_DEBUG "-Wall -Werror -DCLAY_DEBUG") -set(CMAKE_CXX_FLAGS_RELEASE "-O3") +set(CMAKE_CC_FLAGS_DEBUG "-Wall -Werror -DCLAY_DEBUG") +set(CMAKE_CC_FLAGS_RELEASE "-O3") add_custom_command( TARGET SDL2_video_demo POST_BUILD diff --git a/examples/cairo-pdf-rendering/CMakeLists.txt b/examples/cairo-pdf-rendering/CMakeLists.txt index b40d1ad..4f50979 100644 --- a/examples/cairo-pdf-rendering/CMakeLists.txt +++ b/examples/cairo-pdf-rendering/CMakeLists.txt @@ -8,8 +8,8 @@ target_compile_options(clay_examples_cairo_pdf_rendering PUBLIC) target_include_directories(clay_examples_cairo_pdf_rendering PUBLIC .) target_link_libraries(clay_examples_cairo_pdf_rendering PUBLIC cairo) -set(CMAKE_CXX_FLAGS_DEBUG "-Wall -Werror") -set(CMAKE_CXX_FLAGS_RELEASE "-O3") +set(CMAKE_CC_FLAGS_DEBUG "-Wall -Werror") +set(CMAKE_CC_FLAGS_RELEASE "-O3") add_custom_command( TARGET clay_examples_cairo_pdf_rendering POST_BUILD diff --git a/examples/clay-official-website/CMakeLists.txt b/examples/clay-official-website/CMakeLists.txt index 02a3c8c..9ad6285 100644 --- a/examples/clay-official-website/CMakeLists.txt +++ b/examples/clay-official-website/CMakeLists.txt @@ -8,4 +8,4 @@ add_executable(clay_official_website main.c) target_compile_options(clay_official_website PUBLIC -Wall -Werror -Wno-unknown-pragmas) target_include_directories(clay_official_website PUBLIC .) -set(CMAKE_CXX_FLAGS_RELEASE "-O3") \ No newline at end of file +set(CMAKE_CC_FLAGS_RELEASE "-O3") \ No newline at end of file diff --git a/examples/cpp-project-example/CMakeLists.txt b/examples/cpp-project-example/CMakeLists.txt index 3fc13be..25aab1d 100644 --- a/examples/cpp-project-example/CMakeLists.txt +++ b/examples/cpp-project-example/CMakeLists.txt @@ -8,5 +8,5 @@ add_executable(clay_examples_cpp_project_example main.cpp) target_include_directories(clay_examples_cpp_project_example PUBLIC .) -set(CMAKE_CXX_FLAGS_DEBUG "-Werror -Wall") -set(CMAKE_CXX_FLAGS_RELEASE "-O3") \ No newline at end of file +set(CMAKE_CC_FLAGS_DEBUG "-Werror -Wall") +set(CMAKE_CC_FLAGS_RELEASE "-O3") \ No newline at end of file diff --git a/examples/introducing-clay-video-demo/CMakeLists.txt b/examples/introducing-clay-video-demo/CMakeLists.txt index 7e81e30..61995c8 100644 --- a/examples/introducing-clay-video-demo/CMakeLists.txt +++ b/examples/introducing-clay-video-demo/CMakeLists.txt @@ -24,8 +24,8 @@ 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) -set(CMAKE_CXX_FLAGS_DEBUG "-Wall -Werror -DCLAY_DEBUG") -set(CMAKE_CXX_FLAGS_RELEASE "-O3") +set(CMAKE_CC_FLAGS_DEBUG "-Wall -Werror -DCLAY_DEBUG") +set(CMAKE_CC_FLAGS_RELEASE "-O3") add_custom_command( TARGET clay_examples_introducing_clay_video_demo POST_BUILD diff --git a/examples/raylib-sidebar-scrolling-container/CMakeLists.txt b/examples/raylib-sidebar-scrolling-container/CMakeLists.txt index 6d29c5c..27d31a0 100644 --- a/examples/raylib-sidebar-scrolling-container/CMakeLists.txt +++ b/examples/raylib-sidebar-scrolling-container/CMakeLists.txt @@ -24,8 +24,8 @@ target_compile_options(clay_examples_raylib_sidebar_scrolling_container PUBLIC) target_include_directories(clay_examples_raylib_sidebar_scrolling_container PUBLIC .) target_link_libraries(clay_examples_raylib_sidebar_scrolling_container PUBLIC raylib) -set(CMAKE_CXX_FLAGS_DEBUG "-Wall -Werror -DCLAY_DEBUG") -set(CMAKE_CXX_FLAGS_RELEASE "-O3") +set(CMAKE_CC_FLAGS_DEBUG "-Wall -Werror -DCLAY_DEBUG") +set(CMAKE_CC_FLAGS_RELEASE "-O3") add_custom_command( TARGET clay_examples_raylib_sidebar_scrolling_container POST_BUILD