Fix MSC exception handling flag
authorPyry Haulos <phaulos@google.com>
Fri, 26 Aug 2016 21:43:57 +0000 (14:43 -0700)
committerPyry Haulos <phaulos@google.com>
Fri, 26 Aug 2016 21:54:14 +0000 (14:54 -0700)
Apparently /EHc is not recognized but instead /EHsc has to be used.

Change-Id: I70492583b31bca307af70367b3c5ff29ba86720c

framework/delibs/cmake/CFlags.cmake

index 7a3adaa..f5b442d 100644 (file)
@@ -67,10 +67,10 @@ elseif (DE_COMPILER_IS_MSC)
 
        # For 3rd party sw disable all warnings
        set(DE_3RD_PARTY_C_FLAGS        "${CMAKE_C_FLAGS} ${MSC_BASE_FLAGS} /W0")
-       set(DE_3RD_PARTY_CXX_FLAGS      "${CMAKE_CXX_FLAGS} ${MSC_BASE_FLAGS} /EHc /W0")
+       set(DE_3RD_PARTY_CXX_FLAGS      "${CMAKE_CXX_FLAGS} ${MSC_BASE_FLAGS} /EHsc /W0")
 
        set(CMAKE_C_FLAGS                       "${CMAKE_C_FLAGS} ${MSC_BASE_FLAGS} ${MSC_WARNING_FLAGS}")
-       set(CMAKE_CXX_FLAGS                     "${CMAKE_CXX_FLAGS} ${MSC_BASE_FLAGS} /EHc ${MSC_WARNING_FLAGS}")
+       set(CMAKE_CXX_FLAGS                     "${CMAKE_CXX_FLAGS} ${MSC_BASE_FLAGS} /EHsc ${MSC_WARNING_FLAGS}")
 
 else ()
        message(FATAL_ERROR "DE_COMPILER is not valid")