Fixes the typo in the CMake options (resolves #272)
Signed-off-by: Tao He <sighingnow@gmail.com>
This commit is contained in:
parent
17d7b60194
commit
3a594890c9
|
|
@ -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")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue