Skip to content

Commit

Permalink
Differentiate between MSVC and others for all warnings compile options.
Browse files Browse the repository at this point in the history
  • Loading branch information
BartVandewoestyne committed Feb 12, 2024
1 parent 3c8e155 commit 3e150b9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ set(CMAKE_CXX_STANDARD 98)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

set(CMAKE_CXX_FLAGS "-g -Wall -Wextra")
#set(CMAKE_CXX_FLAGS "-g")
if (MSVC)
add_compile_options(/W4)
else()
add_compile_options(-Wall -Wextra -Wpedantic)
endif()

add_subdirectory(Foundation_Classes)
add_subdirectory(Behavioral_Patterns)
Expand Down

0 comments on commit 3e150b9

Please sign in to comment.