diff --git a/CMakeLists.txt b/CMakeLists.txt index a4117aed61..9d24cc3a9f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)