[CMAKE] Do not treat C4189 as an error in Release builds.

svn path=/trunk/; revision=67864
This commit is contained in:
Amine Khaldi
2015-05-23 12:24:57 +00:00
parent 0aeb9104ed
commit 9196ea556e
+4
View File
@@ -75,6 +75,10 @@ add_compile_flags("/we4013 /we4020 /we4022 /we4047 /we4098 /we4113 /we4129 /we41
# - C4115: named type definition in parentheses
add_compile_flags("/w14115")
if(CMAKE_BUILD_TYPE STREQUAL "Release")
add_compile_flags("/w14189")
endif()
# Debugging
#if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
if(CMAKE_BUILD_TYPE STREQUAL "Debug")