--- CMakeLists.txt 2014-09-30 17:11:42.000000000 +0800 +++ CMakeLists.txt 2024-07-14 13:59:01.000000000 +0800 @@ -84,6 +84,9 @@ ) endif() +string(REGEX REPLACE "-fno-exceptions -DQT_NO_EXCEPTIONS" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fexceptions") + ## dirs to build add_subdirectory(lib) add_subdirectory(app)