Add MSVC specific flags
This commit is contained in:
parent
d2c0ef185f
commit
4365da0daf
|
@ -81,6 +81,8 @@ elseif(${IS_CLANG})
|
|||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -flto=full -fwhole-program-vtables")
|
||||
endif()
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -fstrict-vtable-pointers")
|
||||
elseif(MSVC)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W3 /Zc:__cplusplus")
|
||||
endif()
|
||||
string(TOUPPER "${CMAKE_BUILD_TYPE}" UPPERCASE_BUILD_TYPE)
|
||||
if (UPPERCASE_BUILD_TYPE STREQUAL RELEASE)
|
||||
|
|
Loading…
Reference in New Issue