CMakeLists: MSVC: Weaken warning level for externals

This commit is contained in:
MerryMage 2020-05-21 22:31:54 +01:00
parent 93c289b54f
commit e85a08ec34
2 changed files with 12 additions and 7 deletions

View file

@ -45,14 +45,17 @@ list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/CMakeModules")
if (MSVC) if (MSVC)
set(DYNARMIC_CXX_FLAGS set(DYNARMIC_CXX_FLAGS
/std:c++latest # CMAKE_CXX_STANDARD has no effect on MSVC until CMake 3.10. /std:c++latest # CMAKE_CXX_STANDARD has no effect on MSVC until CMake 3.10.
/experimental:external
/external:W0
/external:anglebrackets
/W4 /W4
/w34263 # Non-virtual member function hides base class virtual function /w44263 # Non-virtual member function hides base class virtual function
/w44265 # Class has virtual functions, but destructor is not virtual /w44265 # Class has virtual functions, but destructor is not virtual
/w34456 # Declaration of 'var' hides previous local declaration /w44456 # Declaration of 'var' hides previous local declaration
/w34457 # Declaration of 'var' hides function parameter /w44457 # Declaration of 'var' hides function parameter
/w34458 # Declaration of 'var' hides class member /w44458 # Declaration of 'var' hides class member
/w34459 # Declaration of 'var' hides global definition /w44459 # Declaration of 'var' hides global definition
/w34946 # Reinterpret-cast between related types /w44946 # Reinterpret-cast between related types
/wd4592 # Symbol will be dynamically initialized (implementation limitation) /wd4592 # Symbol will be dynamically initialized (implementation limitation)
/permissive- # Stricter C++ standards conformance /permissive- # Stricter C++ standards conformance
/MP /MP

View file

@ -21,7 +21,9 @@ target_include_directories(mp INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE
# robin-map # robin-map
add_subdirectory(robin-map) add_library(robin_map INTERFACE)
add_library(tsl::robin_map ALIAS robin_map)
target_include_directories(robin_map SYSTEM INTERFACE "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/robin-map/include>")
# xbyak # xbyak