projects
/
platform
/
upstream
/
assimp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
003c728
)
Disable warning 4351 on MSVC 2013
author
Turo Lamminen
<turotl@gmail.com>
Mon, 2 Oct 2017 10:08:20 +0000
(13:08 +0300)
committer
Turo Lamminen
<turotl@gmail.com>
Mon, 2 Oct 2017 10:27:11 +0000
(13:27 +0300)
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
ba219a4
..
7718002
100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-203,6
+203,11
@@
IF ((CMAKE_C_COMPILER_ID MATCHES "GNU") AND NOT CMAKE_COMPILER_IS_MINGW)
ELSEIF(MSVC)
# enable multi-core compilation with MSVC
add_compile_options(/MP)
+
+ # disable "elements of array '' will be default initialized" warning on MSVC2013
+ IF(MSVC12)
+ add_compile_options(/wd4351)
+ ENDIF()
ELSEIF ( "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" )
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -fvisibility=hidden -fPIC -Wall -Wno-long-long -std=c++11" )
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")