From 4ccc349b4abbfc59e9698d574ab129014fa63ddb Mon Sep 17 00:00:00 2001 From: Robert Kausch Date: Sat, 28 Jan 2023 22:26:28 +0100 Subject: [PATCH] Add /EHsc option for Visual Studio CMake builds. --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e0187cd..0ab706a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -97,6 +97,13 @@ endfunction() configure_pkg_config_file(mp4v2.pc.in) +# +# Set compile flags +# +if(MSVC) + add_compile_options(/EHsc) +endif() + # # Define MP4v2 source files #