aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Cord-Landwehr <[email protected]>2015-05-25 23:00:47 +0200
committerAndreas Cord-Landwehr <[email protected]>2015-05-25 23:01:25 +0200
commit1ed645934b7ad8a39cf65a66c1d746667dde0439 (patch)
tree12948ad31ab6b57be1b9e81e648f66c771335c56
parent3f2782ca0501bf3ff3a0f0cceb91cb37e6792cab (diff)
Enable exceptions for whole GML plugin.
Next try on fixing build on OSX.
-rw-r--r--libgraphtheory/fileformats/gml/CMakeLists.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/libgraphtheory/fileformats/gml/CMakeLists.txt b/libgraphtheory/fileformats/gml/CMakeLists.txt
index 9886f9f..7b1cd0d 100644
--- a/libgraphtheory/fileformats/gml/CMakeLists.txt
+++ b/libgraphtheory/fileformats/gml/CMakeLists.txt
@@ -27,9 +27,6 @@ set(gmlformat_SRCS
gmlgrammarhelper.cpp
)
-# Boost requires exceptions
-kde_source_files_enable_exceptions(gmlgrammar.cpp)
-
add_library(gmlfileformat MODULE ${gmlformat_SRCS})
target_link_libraries(gmlfileformat
@@ -41,6 +38,10 @@ target_link_libraries(gmlfileformat
rocsgraphtheory
)
+
+# Boost::spirit requires exceptions
+kde_target_enable_exceptions(gmlfileformat PRIVATE)
+
kcoreaddons_desktop_to_json(gmlfileformat gmlfileformat.desktop)
install(TARGETS gmlfileformat DESTINATION ${PLUGIN_INSTALL_DIR}/rocs/fileformats)