Skip to content

Commit

Permalink
Adding DESTINATION to install_jar in CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Buggynours committed Jul 12, 2016
1 parent 11a1332 commit 72844d8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions storage/connect/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,11 @@ ENDIF(CONNECT_WITH_ODBC)
#
# JDBC
#

OPTION(CONNECT_WITH_JDBC "Compile CONNECT storage engine with JDBC support" ON)
IF(APPLE)
OPTION(CONNECT_WITH_JDBC "some comment" OFF)
ELSE()
OPTION(CONNECT_WITH_JDBC "some comment" ON)
ENDIF()

IF(CONNECT_WITH_JDBC)
# TODO: detect Java SDK and the presence of JDBC connectors
Expand All @@ -254,9 +257,11 @@ IF(CONNECT_WITH_JDBC)
jdbconn.cpp tabjdbc.cpp jdbconn.h tabjdbc.h jdbccat.h
JdbcInterface.java ApacheInterface.java MariadbInterface.java
MysqlInterface.java OracleInterface.java PostgresqlInterface.java)
# TODO: detect presence of components such as the MariaDB JDBC driver or
# Apache package in order to add more files to the JAVA_SOURCES.
SET (JAVA_SOURCES JdbcInterface.java)
add_jar(JdbcInterface ${JAVA_SOURCES})
install_jar(JdbcInterface ${INSTALL_PLUGINDIR} COMPONENT connect-engine)
install_jar(JdbcInterface DESTINATION ${INSTALL_PLUGINDIR} COMPONENT connect-engine)
add_definitions(-DJDBC_SUPPORT)
ELSE()
SET(JDBC_LIBRARY "")
Expand Down

0 comments on commit 72844d8

Please sign in to comment.