summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-12-18 22:28:24 (GMT)
committerGitHub <noreply@github.com>2019-12-18 22:28:24 (GMT)
commit50a71f363bcbe0142ebb7284b369afefe383341a (patch)
treebd133d9118c65fe292722abc9f8b5d7bb080247e
parentc896849d20ede3d246fd82af65750ba42934539e (diff)
parente282382e78e7381fda85894dc588793185ed77d0 (diff)
downloadDoxygen-50a71f363bcbe0142ebb7284b369afefe383341a.zip
Doxygen-50a71f363bcbe0142ebb7284b369afefe383341a.tar.gz
Doxygen-50a71f363bcbe0142ebb7284b369afefe383341a.tar.bz2
Merge pull request #7453 from albert-github/feature/bug_nmake_ehsc
Warning with Windows compilation using NMake
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8ab5aa7..472b90f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -70,6 +70,9 @@ if (WIN32)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj") # needed for language.cpp on 64bit
add_definitions(-DLIBICONV_STATIC -D_CRT_SECURE_NO_WARNINGS)
endif()
+ if (CMAKE_GENERATOR MATCHES "NMake Makefiles")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc")
+ endif()
endif()
if(POLICY CMP0063)