Skip to content

Commit

Permalink
Fix for CONC-222: Fix installation of include files (bug was introduc…
Browse files Browse the repository at this point in the history
…ed by

commit d0a0e4c)
  • Loading branch information
9EOR9 committed Jan 2, 2017
1 parent 2261808 commit cb8d9d8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
11 changes: 7 additions & 4 deletions include/CMakeLists.txt
Expand Up @@ -8,15 +8,18 @@ SET(MARIADB_CLIENT_INCLUDES ${CC_SOURCE_DIR}/include/mariadb_com.h
${CC_SOURCE_DIR}/include/errmsg.h
${CC_SOURCE_DIR}/include/mariadb_dyncol.h
${CC_SOURCE_DIR}/include/mariadb_ctype.h
PARENT_SCOPE)
)
SET(MYSQL_ADDITIONAL_INCLUDES
${CC_SOURCE_DIR}/include/mysql/client_plugin.h
${CC_SOURCE_DIR}/include/mysql/plugin_auth_common.h
${CC_SOURCE_DIR}/include/mysql/plugin_auth.h
PARENT_SCOPE)
SET(MARIADB_ADDITIONAL_INCLUDES
)
SET(MARIADB_ADDITIONAL_INCLUDES
${CC_SOURCE_DIR}/include/mariadb/ma_io.h
PARENT_SCOPE)
)
IF(WIN32)
SET(WIX_INCLUDES ${MARIADB_CLIENT_INCLUDES} ${MARIADB_ADDITIONAL_INCLUDES} ${MYSQL_ADDITIONAL_INCLUDES} PARENT_SCOPE)
ENDIF()

INSTALL(FILES
${MARIADB_CLIENT_INCLUDES}
Expand Down
3 changes: 1 addition & 2 deletions win/packaging/CMakeLists.txt
Expand Up @@ -39,8 +39,7 @@ FOREACH(plugin ${PLUGINS})
ENDIF()
ENDFOREACH()

SET(ALL_INCLUDES ${MARIADB_CLIENT_INCLUDES} ${MARIADB_ADDITIONAL_INCLUDES} ${MYSQL_ADDITIONAL_INCLUDES})
FOREACH(src ${ALL_INCLUDES})
FOREACH(src ${WIX_INCLUDES})
STRING(REPLACE "${CC_SOURCE_DIR}/include/" "" src ${src})
# check binary dir
STRING(REPLACE "${CC_BINARY_DIR}/include/" "" chgbin ${src})
Expand Down

0 comments on commit cb8d9d8

Please sign in to comment.