Skip to content

Commit

Permalink
cmake: set compile options for GNU
Browse files Browse the repository at this point in the history
  • Loading branch information
deniskovalchuk committed Nov 24, 2024
1 parent f7980a1 commit a1b8e69
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,13 @@ target_include_directories(ftp

target_compile_features(ftp PUBLIC cxx_std_17)

if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
target_compile_options(ftp
PRIVATE
-Wall
-Wextra
-Wpedantic)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(ftp
PRIVATE
-Weverything
Expand Down

0 comments on commit a1b8e69

Please sign in to comment.