[Groonga-commit] groonga/groonga at d051340 [master] cmake: update GCC like compiler detection code

アーカイブの一覧に戻る

Kouhei Sutou null+****@clear*****
Tue Oct 22 17:55:46 JST 2013


Kouhei Sutou	2013-10-22 17:55:46 +0900 (Tue, 22 Oct 2013)

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

  Message:
    cmake: update GCC like compiler detection code
    
    We also use G++.

  Modified files:
    CMakeLists.txt

  Modified: CMakeLists.txt (+3 -1)
===================================================================
--- CMakeLists.txt    2013-10-22 17:46:30 +0900 (f732452)
+++ CMakeLists.txt    2013-10-22 17:55:46 +0900 (407a71f)
@@ -107,7 +107,9 @@ add_definitions(
   -DHAVE_CONFIG_H
   )
 
-if(CMAKE_COMPILER_IS_GNUC OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
+if(CMAKE_COMPILER_IS_GNUC OR
+    CMAKE_COMPILER_IS_GNUCXX OR
+    CMAKE_C_COMPILER_ID STREQUAL "Clang")
   set(_GNU_SOURCE TRUE)
 endif()
 
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る