[Groonga-mysql-commit] mroonga/mroonga at 72e2462 [master] cmake: set RPATH on bundled build mode

アーカイブの一覧に戻る

Kouhei Sutou null+****@clear*****
Mon Jun 10 15:07:02 JST 2013


Kouhei Sutou	2013-06-10 15:07:02 +0900 (Mon, 10 Jun 2013)

  New Revision: 72e2462e21018ead5d127c472faeae084b659d3b
  https://github.com/mroonga/mroonga/commit/72e2462e21018ead5d127c472faeae084b659d3b

  Message:
    cmake: set RPATH on bundled build mode

  Modified files:
    CMakeLists.txt

  Modified: CMakeLists.txt (+9 -0)
===================================================================
--- CMakeLists.txt    2013-06-10 01:44:34 +0900 (668b7dd)
+++ CMakeLists.txt    2013-06-10 15:07:02 +0900 (529a8fb)
@@ -175,6 +175,15 @@ if(MRN_BUNDLED)
     STORAGE_ENGINE MODULE_ONLY
     LINK_LIBRARIES ${GROONGA_LIBRARIES}
     MODULE_OUTPUT_NAME "ha_mroonga")
+  set(EXPANDED_INSTALL_LIBDIR "${CMAKE_INSTALL_PREFIX}/${INSTALL_LIBDIR}")
+  list(FIND
+    CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES
+    "${EXPANDED_INSTALL_LIBDIR}"
+    EXPANDED_INSTALL_LIBDIR_INDEX_IN_IMPLICIT_LINK_DIRECTORIES)
+  if(EXPANDED_INSTALL_LIBDIR_INDEX_IN_IMPLICIT_LINK_DIRECTORIES EQUAL -1)
+    set_property(TARGET ha_mroonga APPEND PROPERTY
+      INSTALL_RPATH "${EXPANDED_INSTALL_LIBDIR}")
+  endif()
 else()
   add_library(ha_mroonga MODULE
     ${MROONGA_SOURCES}
-------------- next part --------------
HTML����������������������������...
ダウンロード 



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