Skip to content

Commit e020b76

Browse files
committed
Package the gcc and clang parameters
1 parent 55dd2d9 commit e020b76

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ add_executable(blockattack ${GUI_TYPE} ${SOURCES} ${RES_FILES}
8686
# Modern target-based compiler settings
8787
target_compile_features(blockattack PRIVATE cxx_std_17)
8888
target_compile_options(blockattack PRIVATE
89-
-Wall
90-
-Wextra
89+
$<$<CXX_COMPILER_ID:GNU,Clang>:-Wall -Wextra>
9190
$<$<CONFIG:Debug>:-g>
9291
$<$<AND:$<BOOL:${WIN32}>,$<CXX_COMPILER_ID:GNU>>:-march=i686>
9392
)

0 commit comments

Comments
 (0)