[Groonga-commit] groonga/groonga at 8fce40e [master] cmake: use -std=gnu99

Back to archive index

Kouhei Sutou null+****@clear*****
Sat Mar 7 12:04:44 JST 2015


Kouhei Sutou	2015-03-07 12:04:44 +0900 (Sat, 07 Mar 2015)

  New Revision: 8fce40efa712ad3f33437cee0680a6f10f3a33ab
  https://github.com/groonga/groonga/commit/8fce40efa712ad3f33437cee0680a6f10f3a33ab

  Message:
    cmake: use -std=gnu99

  Modified files:
    CMakeLists.txt

  Modified: CMakeLists.txt (+6 -0)
===================================================================
--- CMakeLists.txt    2015-03-07 11:53:32 +0900 (dfe2e28)
+++ CMakeLists.txt    2015-03-07 12:04:44 +0900 (21567ad)
@@ -137,6 +137,12 @@ set(GRN_RELATIVE_RUBY_SCRIPTS_DIR
 set(GRN_RUBY_SCRIPTS_DIR
   "${CMAKE_INSTALL_PREFIX}/${GRN_RELATIVE_RUBY_SCRIPTS_DIR}")
 
+
+if(CMAKE_COMPILER_IS_GNUCC)
+  set(GRN_C_COMPILE_FLAGS "${GRN_C_COMPILE_FLAGS} -std=gnu99")
+endif()
+
+
 macro(check_cflag flag)
   string(REGEX REPLACE "[-=]" "_" temporary_variable_name ${flag})
   string(TOUPPER "${temporary_variable_name}" temporary_variable_name)
-------------- next part --------------
HTML����������������������������...
下载 



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