summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index be70c04ae..80a8d4ed8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -627,6 +627,14 @@ add_definitions(-DBOOST_ERROR_CODE_HEADER_ONLY
627 -DBOOST_DATE_TIME_NO_LIB 627 -DBOOST_DATE_TIME_NO_LIB
628 -DBOOST_REGEX_NO_LIB 628 -DBOOST_REGEX_NO_LIB
629) 629)
630# Adjustments for MSVC + Ninja
631if (MSVC AND CMAKE_GENERATOR STREQUAL "Ninja")
632 add_compile_options(
633 /wd4711 # function 'function' selected for automatic inline expansion
634 /wd4464 # relative include path contains '..'
635 /wd4820 # 'identifier1': '4' bytes padding added after data member 'identifier2'
636 )
637endif()
630 638
631enable_testing() 639enable_testing()
632add_subdirectory(externals) 640add_subdirectory(externals)