Skip to content

Commit 2635431

Browse files
committed
cmake: Fix include path for legacy connector when used from the build tree.
1 parent 6bfc6f0 commit 2635431

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,12 +349,14 @@ add_config_option(WITH_JDBC BOOL DEFAULT OFF
349349
if(WITH_JDBC)
350350
add_subdirectory(jdbc)
351351

352-
# Note: Include path must contain build location because
353-
# this is where config.h header is written.
352+
# Note: These include paths are to be used in a build tree. In
353+
# this situation the jdbc public headers are not installed yet and
354+
# we use a copy of them placed inside the build tree.
354355

355356
target_include_directories(connector-jdbc
356357
PUBLIC "${PROJECT_BINARY_DIR}/jdbc/cppconn"
357358
PUBLIC "${PROJECT_SOURCE_DIR}/include"
359+
PUBLIC "${PROJECT_BINARY_DIR}/jdbc/include/jdbc"
358360
)
359361

360362
endif()

0 commit comments

Comments
 (0)