Skip to content

Commit

Permalink
[CMake] fix warning build, add flag /EHsc to target compile options (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
beats-dh authored Jul 19, 2022
1 parent fd0f18a commit afab2af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ if (MSVC)
string(REPLACE "/Zi" "/Z7" CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO}")
endif()

target_compile_options(${PROJECT_NAME} PUBLIC /MP /FS /Zf )
target_compile_options(${PROJECT_NAME} PUBLIC /MP /FS /Zf /EHsc )

target_include_directories(${PROJECT_NAME}
PRIVATE
Expand Down

0 comments on commit afab2af

Please sign in to comment.