Skip to content

Commit

Permalink
Add /EHsc option for Visual Studio CMake builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
enzo1982 committed Jan 28, 2023
1 parent d87a845 commit 4ccc349
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down

0 comments on commit 4ccc349

Please sign in to comment.