Skip to content

Commit

Permalink
Removed redundant flags for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
bialger committed Aug 14, 2024
1 parent cfa42a9 commit 53663d3
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,25 @@ project(
set(CMAKE_CXX_COMPILER_VERSION 20)
set(CMAKE_CXX_STANDARD 20)

if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
add_compile_options(
/Wall
)
else ()
if (NOT WIN32)
add_compile_options(
-Wall
)
-Wextra
-Wpedantic

-Wcast-align
-Wcast-qual
-Wconversion
-Wctor-dtor-privacy
-Wenum-compare
-Wfloat-equal
-Wnon-virtual-dtor
-Wold-style-cast
-Woverloaded-virtual
-Wredundant-decls
-Wsign-conversion
-Wsign-promo
)
endif ()

add_subdirectory(lib)
Expand Down

0 comments on commit 53663d3

Please sign in to comment.