CMAKE: silenced some warnings for msvc with vcpkg

vcpkg comes with a cmake toolchain file
master
Martin Gerhardy 2019-08-14 21:37:01 +02:00
parent e1c08bd28e
commit c8eb393311
1 changed files with 4 additions and 0 deletions

View File

@ -109,6 +109,10 @@ if (NOT CMAKE_TOOLCHAIN_FILE)
else()
include(${SCRIPTS_CMAKE_DIR}/toolchains/linux-toolchain.cmake)
endif()
else()
if (MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4201 /wd4244 /wd4245")
endif()
endif()
if (NOT CMAKE_BUILD_TYPE)