From d70ff70b7d5a259572f7f641ea754f799bda3ea1 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 19 Oct 2022 08:22:35 +0200 Subject: some more build shenanigans --- CMakeLists.txt | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index eb4e9922..c3d64102 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -123,14 +123,13 @@ sets(BOOL MAGNUM_WITH_BULLET OFF MAGNUM_WITH_DART OFF - MAGNUM_WITH_EIGEN ON - MAGNUM_WITH_GLM ON + MAGNUM_WITH_EIGEN OFF + MAGNUM_WITH_GLM OFF MAGNUM_WITH_IMGUI ON ) sets(BOOL - SDL_SHARED ON - SDL_STATIC OFF + SDL_ASSERTIONS release SDL_3DNOW OFF SDL_ALTIVEC OFF @@ -219,6 +218,14 @@ else() add_definitions(-include compat/prelude.hpp) endif() +if(MSVC) + add_compile_options(-W4) +else() + add_compile_options(-Wall -Wextra -Wpedantic -Wno-old-style-cast -Wno-padded -Wno-ignored-attributes) + add_compile_options(-fcolor-diagnostics) + add_compile_options(-ferror-limit=5) +endif() + add_subdirectory(src) add_subdirectory(draw) add_subdirectory(main) -- cgit v1.2.3