[Groonga-commit] groonga/groonga at fb3fd01 [master] cmake: exception is used in groonga

Back to archive index

Kouhei Sutou null+****@clear*****
Thu May 9 16:22:26 JST 2013


Kouhei Sutou	2013-05-09 16:22:26 +0900 (Thu, 09 May 2013)

  New Revision: fb3fd01bec1fbf253ce2e02743e3bd6968b3da2b
  https://github.com/groonga/groonga/commit/fb3fd01bec1fbf253ce2e02743e3bd6968b3da2b

  Message:
    cmake: exception is used in groonga

  Modified files:
    lib/CMakeLists.txt

  Modified: lib/CMakeLists.txt (+5 -0)
===================================================================
--- lib/CMakeLists.txt    2013-05-09 16:14:56 +0900 (303c7ed)
+++ lib/CMakeLists.txt    2013-05-09 16:22:26 +0900 (83bfef3)
@@ -26,6 +26,11 @@ read_file_list(${CMAKE_CURRENT_SOURCE_DIR}/dat/sources.am LIBGRNDAT_SOURCES)
 string(REGEX REPLACE "([^;]+)" "dat/\\1"
   LIBGRNDAT_SOURCES "${LIBGRNDAT_SOURCES}")
 
+if(CMAKE_COMPILER_IS_GNUCXX)
+  set_source_files_properties(dat.cpp ${LIBGRNDAT_SOURCES} PROPERTIES
+    COMPILE_FLAGS "-fexceptions")
+endif()
+
 add_library(libgroonga SHARED ${LIBGROONGA_SOURCES} ${LIBGRNDAT_SOURCES})
 set_target_properties(libgroonga PROPERTIES OUTPUT_NAME "groonga")
 if(GRN_WITH_STATIC)
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index