diff --git a/apps/CMakeLists.txt b/apps/CMakeLists.txt index 813fd09..d00c89d 100644 --- a/apps/CMakeLists.txt +++ b/apps/CMakeLists.txt @@ -1,2 +1,7 @@ +# Allow exceptions by removing restricting flag. +if ( ROSA_COMPILER_IS_GCC_COMPATIBLE ) + remove("-fno-exceptions" CMAKE_CXX_FLAGS) +endif() + # Add the different subdirectories ADDALLSUBDIRS() diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 813fd09..d00c89d 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -1,2 +1,7 @@ +# Allow exceptions by removing restricting flag. +if ( ROSA_COMPILER_IS_GCC_COMPATIBLE ) + remove("-fno-exceptions" CMAKE_CXX_FLAGS) +endif() + # Add the different subdirectories ADDALLSUBDIRS()