From 3a594890c940e63f5621cfef3ebbffd2521c4fc9 Mon Sep 17 00:00:00 2001 From: Tao He Date: Sun, 30 Jun 2024 23:54:09 +0800 Subject: [PATCH] Fixes the typo in the CMake options (resolves #272) Signed-off-by: Tao He --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8ae75e7..ee447c1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -90,7 +90,7 @@ macro(use_cxx target) endmacro(use_cxx) macro(set_exceptions target) - if(BUILD_NO_EXCEPTIONS) + if(BUILD_WITH_NO_EXCEPTIONS) if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") target_compile_options(${target} PRIVATE "-fno-exceptions") elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")