diff --git a/CMakeLists.txt b/CMakeLists.txt index ae127916..6a0e0c31 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -91,8 +91,8 @@ if(MSVC) include_directories(${glm_INCLUDE_DIR}) add_definitions("/bigobj") set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) - SET(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} " /w") - SET(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} " /w") + SET(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} " /w /wd4710 /wd4711") + SET(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} " /w /wd4710 /wd4711") # Kaguya uses a pointer to a local variable (in object.hpp file) to store class conversions. # When used in different modules, the variable doesn't have the same address, preventing to mix kernel and UI bindings add_definitions("-DKAGUYA_SUPPORT_MULTIPLE_SHARED_LIBRARY=1")