From 3099d46736f1a89f184fcf00ad33ffb06e76e820 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sun, 17 Dec 2017 14:45:29 -0800 Subject: [PATCH] Disable exception handling in CMake build Now that muparser no longer relies on exceptions, we can disable them again. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ab522b63e..a9999939d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,9 @@ PROJECT(fish-shell CXX) # We are C++11. SET(CMAKE_CXX_STANDARD 11) +# Disable exception handling. +ADD_COMPILE_OPTIONS(-fno-exceptions) + # Hide the CMake Rules directories in Xcode projects. SOURCE_GROUP("CMake Rules" REGULAR_EXPRESSION "^$")