Skip to content

Commit

Permalink
cmake: fix warning with 'cl' about /EHsc override
Browse files Browse the repository at this point in the history
  • Loading branch information
fabienfl-orc committed Nov 9, 2020
1 parent 38e06c3 commit 3daf21b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmake/Orc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ if(${TARGET_ARCH} STREQUAL "x64")
)
endif()

# Fix warning with 'cl' about overriding existing value
string(REPLACE "/EHsc" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")

# TODO: Qspectre disable option is not supported until cmake 3.15.2
add_compile_options(
/wd4995
Expand All @@ -51,8 +54,6 @@ list(APPEND COMPILE_OPTIONS_RELEASE
/guard:cf # Enable control flow guard
)



foreach(OPTION IN ITEMS ${COMPILE_OPTIONS_DEBUG})
add_compile_options($<$<CONFIG:DEBUG>:${OPTION}>)
endforeach()
Expand Down

0 comments on commit 3daf21b

Please sign in to comment.