File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -330,6 +330,15 @@ add_config_option(WITH_JDBC BOOL DEFAULT OFF
330
330
331
331
if (WITH_JDBC )
332
332
add_subdirectory (jdbc )
333
+
334
+ # Note: Include path must contain build location because
335
+ # this is where config.h header is written.
336
+
337
+ target_include_directories (connector-jdbc
338
+ PUBLIC "${PROJECT_BINARY_DIR} /jdbc/cppconn"
339
+ PUBLIC "${PROJECT_SOURCE_DIR} /include"
340
+ )
341
+
333
342
endif ()
334
343
335
344
@@ -512,10 +521,6 @@ if(WITH_JDBC)
512
521
513
522
add_executable (try_jdbc EXCLUDE_FROM_ALL try_jdbc.cc )
514
523
target_link_libraries (try_jdbc connector-jdbc )
515
- target_include_directories (try_jdbc
516
- PRIVATE "${PROJECT_BINARY_DIR} /include/mysql"
517
- PRIVATE "${PROJECT_BINARY_DIR} /include/jdbc/cppconn"
518
- )
519
524
520
525
endif ()
521
526
You can’t perform that action at this time.
0 commit comments