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:
c202d43
)
Fix warnings-as-errors flag on MSVC
author
Turo Lamminen
<turotl@gmail.com>
Mon, 2 Oct 2017 08:40:57 +0000
(11:40 +0300)
committer
Turo Lamminen
<turotl@gmail.com>
Mon, 2 Oct 2017 08:40:57 +0000
(11:40 +0300)
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
bd5c861
..
ba219a4
100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-219,8
+219,12
@@
if (ASSIMP_COVERALLS)
endif()
if (ASSIMP_WERROR)
+ IF (MSVC)
+ add_compile_options(/WX)
+ ELSE()
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")
+ ENDIF()
endif()
INCLUDE (FindPkgMacros)