[Groonga-commit] groonga/groonga at 455d461 [master] cmake: support embedded Groonga with Clang

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Feb 3 21:08:28 JST 2015


Kouhei Sutou	2015-02-03 21:08:28 +0900 (Tue, 03 Feb 2015)

  New Revision: 455d4612db0f09bc186c42a6a7e029b319a2b0c9
  https://github.com/groonga/groonga/commit/455d4612db0f09bc186c42a6a7e029b319a2b0c9

  Message:
    cmake: support embedded Groonga with Clang
    
    MDEV: 7293
    
    Reported by Bernard Spil. Thanks!!!

  Modified files:
    CMakeLists.txt

  Modified: CMakeLists.txt (+4 -1)
===================================================================
--- CMakeLists.txt    2015-02-03 21:04:35 +0900 (6a6fb9d)
+++ CMakeLists.txt    2015-02-03 21:08:28 +0900 (cddb3df)
@@ -166,7 +166,10 @@ if(CMAKE_COMPILER_IS_GNUCXX)
   check_cxxflag("-fexceptions")
   check_cxxflag("-fimplicit-templates")
   check_build_flag("-Wno-clobbered")
-  if(GRN_EMBED)
+endif()
+
+if(GRN_EMBED)
+  if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANGCXX)
     check_build_flag("-fPIC")
   endif()
 endif()
-------------- next part --------------
HTML����������������������������...
Download 



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