diff options
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 8 |
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 | ||
| 631 | if (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 | ) | ||
| 637 | endif() | ||
| 630 | 638 | ||
| 631 | enable_testing() | 639 | enable_testing() |
| 632 | add_subdirectory(externals) | 640 | add_subdirectory(externals) |