Skip to content

Commit

Permalink
[libmariadb] rollback conflict with libmysql
Browse files Browse the repository at this point in the history
  • Loading branch information
flysha committed Jan 25, 2017
1 parent 033c7d0 commit 8fd59c5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ports/libmariadb/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@

if (EXISTS "${CURRENT_INSTALLED_DIR}/include/mysql/mysql.h")
message(FATAL_ERROR "FATAL ERROR: libmysql and libmariadb are incompatible.")
endif()

include(vcpkg_common_functions)
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/mariadb-connector-c-2.3.2)

Expand Down Expand Up @@ -57,6 +62,9 @@ file(REMOVE
${CURRENT_PACKAGES_DIR}/include/mariadb/mysql_version.h.in
${CURRENT_PACKAGES_DIR}/include/mariadb/CMakeLists.txt
${CURRENT_PACKAGES_DIR}/include/mariadb/Makefile.am)
file(RENAME
${CURRENT_PACKAGES_DIR}/include/mariadb
${CURRENT_PACKAGES_DIR}/include/mysql)

# copy license file
file(COPY ${SOURCE_PATH}/COPYING.LIB DESTINATION ${CURRENT_PACKAGES_DIR}/share/libmariadb)
Expand Down
4 changes: 4 additions & 0 deletions ports/libmysql/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
if (EXISTS "${CURRENT_INSTALLED_DIR}/include/mysql/mysql.h")
message(FATAL_ERROR "FATAL ERROR: libmysql and libmariadb are incompatible.")
endif()

include(vcpkg_common_functions)
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/mysql-server-mysql-5.7.17)

Expand Down

0 comments on commit 8fd59c5

Please sign in to comment.