diff options
Diffstat (limited to 'cmake')
| -rw-r--r-- | cmake/CompilerFlags.cmake | 4 | ||||
| -rw-r--r-- | cmake/SlangTarget.cmake | 5 |
2 files changed, 2 insertions, 7 deletions
diff --git a/cmake/CompilerFlags.cmake b/cmake/CompilerFlags.cmake index 5558c346b..cd9021cd0 100644 --- a/cmake/CompilerFlags.cmake +++ b/cmake/CompilerFlags.cmake @@ -16,10 +16,6 @@ function(add_supported_cxx_flags target) endif() foreach(flag ${flags}) - # /EHa enables SEH on Windows, it is not available in Linux. - if(NOT CMAKE_CXX_COMPILER_ID MATCHES "MSVC") - string(REGEX REPLACE "/EHa" "" flag "${flag}") - endif() # remove the `no-` prefix from warnings because gcc doesn't treat it as an # error on its own string(REGEX REPLACE "\\-Wno\\-(.+)" "-W\\1" flag_to_test "${flag}") diff --git a/cmake/SlangTarget.cmake b/cmake/SlangTarget.cmake index 98517a1ba..4a3b75704 100644 --- a/cmake/SlangTarget.cmake +++ b/cmake/SlangTarget.cmake @@ -337,10 +337,9 @@ function(slang_add_target dir type) ) endif() if(ARG_EXTRA_COMPILE_OPTIONS_PRIVATE) - add_supported_cxx_flags( + target_compile_options( ${target} - PRIVATE - ${ARG_EXTRA_COMPILE_OPTIONS_PRIVATE} + PRIVATE ${ARG_EXTRA_COMPILE_OPTIONS_PRIVATE} ) endif() |
