clay/examples/cpp-project-example/CMakeLists.txt
FintasticMan c4c88197db
[Examples/*] Don't error on missing-braces warning
GCC throws this warning. It's not an issue, but fixing it properly will
probably need API changes, so *temporarily* just disable the error.
2024-12-29 00:24:58 +00:00

13 lines
437 B
CMake

cmake_minimum_required(VERSION 3.27)
project(clay_examples_cpp_project_example CXX)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address -fno-omit-frame-pointer -g")
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 -Wno-error=missing-braces")
set(CMAKE_CXX_FLAGS_RELEASE "-O3")