CMAKE: silenced some warnings for msvc with vcpkg
vcpkg comes with a cmake toolchain filemaster
parent
e1c08bd28e
commit
c8eb393311
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue