Skip to content

Commit

Permalink
chore: increase compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Bambooin committed Aug 22, 2023
1 parent 1bf1fd4 commit 5b95ec1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ add_definitions(-DRIME_VERSION="${rime_version}")

include(GNUInstallDirs)

if (MSVC)
# warning level 4
add_compile_options(/W4)
else()
# additional warnings
add_compile_options(-Wall -Wextra -Wpedantic)
endif()

option(BUILD_SHARED_LIBS "Build Rime as shared library" ON)
option(BUILD_MERGED_PLUGINS "Merge plugins into one Rime library" ON)
option(BUILD_STATIC "Build with dependencies as static libraries" OFF)
Expand Down

0 comments on commit 5b95ec1

Please sign in to comment.