Navigation Menu

Skip to content

Commit

Permalink
cmake: don't install additional modules if bundled with MariaDB
Browse files Browse the repository at this point in the history
Patch by Kentoku Shiba. Thanks!!!
  • Loading branch information
s-yata committed Jan 29, 2015
1 parent 3443b32 commit d9ca655
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 5 additions & 3 deletions CMakeLists.txt
Expand Up @@ -58,6 +58,8 @@ configure_file(
"${CMAKE_CURRENT_BINARY_DIR}/groonga-normalizer-mysql.pc"
@ONLY)

install(
FILES "${CMAKE_CURRENT_BINARY_DIR}/groonga-normalizer-mysql.pc"
DESTINATION "lib/pkgconfig/")
if(NOT GROONGA_NORMALIZER_MYSQL_FOUND)
install(
FILES "${CMAKE_CURRENT_BINARY_DIR}/groonga-normalizer-mysql.pc"
DESTINATION "lib/pkgconfig/")
endif()
4 changes: 3 additions & 1 deletion normalizers/CMakeLists.txt
Expand Up @@ -22,4 +22,6 @@ set_target_properties(mysql_normalizer PROPERTIES
PREFIX ""
OUTPUT_NAME "mysql")
target_link_libraries(mysql_normalizer ${GROONGA_LIBRARIES})
install(TARGETS mysql_normalizer DESTINATION "${NORMALIZERS_DIR}")
if(NOT MRN_GROONGA_BUNDLED)
install(TARGETS mysql_normalizer DESTINATION "${NORMALIZERS_DIR}")
endif()

0 comments on commit d9ca655

Please sign in to comment.