Skip to content

Commit 6e2743e

Browse files
authored
Update CMakeLists.txt
1 parent aba6dad commit 6e2743e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ if(MSVC)
3434
# VS 2022 17.10 or newer, but using an older runtime, mutexes can crash
3535
add_compile_options(/D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR)
3636
else()
37-
add_compile_options(-Wall -Wextra -pedantic -Wno-psabi)
37+
add_compile_options(-Wall -Wextra -pedantic -Wno-psabi -fexceptions)
38+
39+
add_link_options(-fexceptions)
3840
endif()
3941

4042
if(CMAKE_VERSION VERSION_LESS 3.18)

0 commit comments

Comments
 (0)