Fixes the typo in the CMake options (resolves #272)

Signed-off-by: Tao He <sighingnow@gmail.com>
This commit is contained in:
Tao He 2024-06-30 23:54:09 +08:00
parent 17d7b60194
commit 3a594890c9
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ macro(use_cxx target)
endmacro(use_cxx) endmacro(use_cxx)
macro(set_exceptions target) macro(set_exceptions target)
if(BUILD_NO_EXCEPTIONS) if(BUILD_WITH_NO_EXCEPTIONS)
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
target_compile_options(${target} PRIVATE "-fno-exceptions") target_compile_options(${target} PRIVATE "-fno-exceptions")
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")