Skip to content

Commit

Permalink
[minor] tabs -> spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Jan 10, 2024
1 parent cc36bbf commit 9f8e404
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -180,22 +180,22 @@ else()
endif()

if(NOT LIBREMIDI_NO_WARNINGS)
if(MSVC)
set(WARNING_FLAGS
/W4
)
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU")
set(WARNING_FLAGS
-Werror # Turns all warnings into errors
-Wall # Enable most warning messages.
-Wextra # Print extra (possibly unwanted) warnings.
#-Wpedantic # Issue warnings needed for strict compliance to the standard.
)
else()
message(WARNING "CMake flags for compiler aren't set for compiler ${CMAKE_CXX_COMPILER_ID}")
endif()

target_compile_options(libremidi PRIVATE ${WARNING_FLAGS})
if(MSVC)
set(WARNING_FLAGS
/W4
)
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU")
set(WARNING_FLAGS
-Werror # Turns all warnings into errors
-Wall # Enable most warning messages.
-Wextra # Print extra (possibly unwanted) warnings.
#-Wpedantic # Issue warnings needed for strict compliance to the standard.
)
else()
message(WARNING "CMake flags for compiler aren't set for compiler ${CMAKE_CXX_COMPILER_ID}")
endif()

target_compile_options(libremidi PRIVATE ${WARNING_FLAGS})
endif ()

add_library(libremidi::libremidi ALIAS libremidi)
Expand Down

0 comments on commit 9f8e404

Please sign in to comment.