fixed D9025
This commit is contained in:
parent
44638cd24a
commit
622777f545
@ -13,8 +13,9 @@ if (UNIX)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -w")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w")
|
||||
else()
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /w")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /w")
|
||||
#remove /W3 from command line -- cannot just cancel it later with /w like in unix because of D9025
|
||||
string(REPLACE "/W3" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
||||
string(REPLACE "/W3" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
|
||||
endif()
|
||||
set(CMAKE_BUILD_TYPE_BAK ${CMAKE_BUILD_TYPE})
|
||||
set(CMAKE_BUILD_TYPE "Release")
|
||||
|
Loading…
Reference in New Issue
Block a user