diff --git a/CMakeLists.txt b/CMakeLists.txt index ad8f517..3af7669 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,9 +21,11 @@ cmake_minimum_required(VERSION 3.16) set(GROONGA_NORMALIZER_MYSQL_PROJECT_NAME "groonga-normalizer-mysql") project("${GROONGA_NORMALIZER_MYSQL_PROJECT_NAME}") +include(GNUInstallDirs) + if(NOT DEFINED GROONGA_NORMALIZER_MYSQL_DOC_DIR) set(GROONGA_NORMALIZER_MYSQL_DOC_DIR - "share/doc/${GROONGA_NORMALIZER_MYSQL_PROJECT_NAME}") + "${CMAKE_INSTALL_DOCDIR}/${GROONGA_NORMALIZER_MYSQL_PROJECT_NAME}") endif() if(DEFINED GROONGA_NORMALIZER_MYSQL_EMBED) @@ -94,7 +96,7 @@ if(NOT GROONGA_NORMALIZER_MYSQL_EMBED) @ONLY) install( FILES "${CMAKE_CURRENT_BINARY_DIR}/groonga-normalizer-mysql.pc" - DESTINATION "${CMAKE_LIBDIR}/pkgconfig/") + DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig/") endif() install(FILES diff --git a/packages/yum/groonga-normalizer-mysql.spec.in b/packages/yum/groonga-normalizer-mysql.spec.in index 765e924..6a9a7c6 100644 --- a/packages/yum/groonga-normalizer-mysql.spec.in +++ b/packages/yum/groonga-normalizer-mysql.spec.in @@ -46,7 +46,6 @@ This package provides development files for groonga-normalizer-mysql. %cmake \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_SYSCONFDIR:PATH=%{_sysconfdir} \ - -DCMAKE_LIBDIR=%{_libdir} \ %cmake_build %install