diff --git a/CMakeLists.txt b/CMakeLists.txt index 3dc507c16c84d242fb2b654a738614e59ed0d4e9..88afebdf8ffe76947a5e15179b2ceb34f3551414 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -128,9 +128,10 @@ if(HAVE_DEPRECATED) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations") endif() -# remove "could not create compact unwind" linker warnings on macOS +# remove "could not create compact unwind" linker warnings on macOS; but breaks +# exception handling if(APPLE) - set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-no_compact_unwind") + # set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-no_compact_unwind") endif() opt(MPI "Enable MPI" OFF) diff --git a/examples/example.cmake b/examples/example.cmake index 3cfc4f57a22ba815c9adbc013f5fe33df387ae6c..41b59be401e673beceb4713c45e54d8b4ab2ef53 100644 --- a/examples/example.cmake +++ b/examples/example.cmake @@ -40,9 +40,10 @@ if(HAVE_DEPRECATED) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations") endif() -# remove "could not create compact unwind" linker warnings on macOS +# remove "could not create compact unwind" linker warnings on macOS; but breaks +# exception handling if(APPLE) - set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-no_compact_unwind") + # set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-no_compact_unwind") endif() # Find Gmsh diff --git a/tutorials/tutorial.cmake b/tutorials/tutorial.cmake index 4ccd602a200e0f82355289830ab6b5cafe4c9180..789553d6fbd57e7f04ddf26fd816e7611ac6c5dd 100644 --- a/tutorials/tutorial.cmake +++ b/tutorials/tutorial.cmake @@ -40,9 +40,10 @@ if(HAVE_DEPRECATED) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations") endif() -# remove "could not create compact unwind" linker warnings on macOS +# remove "could not create compact unwind" linker warnings on macOS; but breaks +# exception handling if(APPLE) - set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-no_compact_unwind") + # set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-no_compact_unwind") endif() # Find Gmsh