Skip to content

Commit

Permalink
fix: remove extra > from the end
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jan 19, 2023
1 parent 254a256 commit 6ad95df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Optimization.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,16 @@ endmacro()

# Disable C++ exceptions for the given project.
macro(disable_exceptions _project_name)
target_compile_options(${_project_name} INTERFACE $<$<AND:$<COMPILE_LANGUAGE:CXX>,$<CXX_COMPILER_ID:MSVC>>>:/EHs-c-
target_compile_options(${_project_name} INTERFACE $<$<AND:$<COMPILE_LANGUAGE:CXX>,$<CXX_COMPILER_ID:MSVC>>:/EHs-c-
/D_HAS_EXCEPTIONS=0>)
target_compile_options(
${_project_name} INTERFACE $<$<AND:$<COMPILE_LANGUAGE:CXX>,$<NOT:$<CXX_COMPILER_ID:MSVC>>>>:-fno-exceptions
${_project_name} INTERFACE $<$<AND:$<COMPILE_LANGUAGE:CXX>,$<NOT:$<CXX_COMPILER_ID:MSVC>>>:-fno-exceptions
-fno-unwind-tables>)
endmacro()

# Disable C++ RTTI (Run-Time Type Information) for the given project.
macro(disable_rtti _project_name)
target_compile_options(${_project_name} INTERFACE $<$<AND:$<COMPILE_LANGUAGE:CXX>,$<CXX_COMPILER_ID:MSVC>>>:/GR->)
target_compile_options(${_project_name} INTERFACE $<$<AND:$<COMPILE_LANGUAGE:CXX>,$<CXX_COMPILER_ID:MSVC>>:/GR->)
target_compile_options(${_project_name}
INTERFACE $<$<AND:$<COMPILE_LANGUAGE:CXX>,$<NOT:$<CXX_COMPILER_ID:MSVC>>>>:-fno-rtti>)
INTERFACE $<$<AND:$<COMPILE_LANGUAGE:CXX>,$<NOT:$<CXX_COMPILER_ID:MSVC>>>:-fno-rtti>)
endmacro()

0 comments on commit 6ad95df

Please sign in to comment.