From 9a0e77e2f52d3e9948f1a1e85095a7670fbc638b Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sun, 5 Aug 2018 11:13:56 +0300 Subject: [PATCH] Fixed build #2789 --- contrib/unixodbc-cmake/CMakeLists.txt | 3 ++- contrib/unixodbc-cmake/linux_x86_64/{ => private}/config.h | 0 2 files changed, 2 insertions(+), 1 deletion(-) rename contrib/unixodbc-cmake/linux_x86_64/{ => private}/config.h (100%) diff --git a/contrib/unixodbc-cmake/CMakeLists.txt b/contrib/unixodbc-cmake/CMakeLists.txt index cde88c50ef0..4f9f6b41538 100644 --- a/contrib/unixodbc-cmake/CMakeLists.txt +++ b/contrib/unixodbc-cmake/CMakeLists.txt @@ -279,7 +279,8 @@ target_link_libraries(unixodbc ltdl) # SYSTEM_FILE_PATH was changed to /etc -target_include_directories(unixodbc PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/linux_x86_64) +target_include_directories(unixodbc PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/linux_x86_64/private) +target_include_directories(unixodbc PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/linux_x86_64) target_include_directories(unixodbc PUBLIC ${ODBC_SOURCE_DIR}/include) target_compile_definitions(unixodbc PRIVATE -DHAVE_CONFIG_H) diff --git a/contrib/unixodbc-cmake/linux_x86_64/config.h b/contrib/unixodbc-cmake/linux_x86_64/private/config.h similarity index 100% rename from contrib/unixodbc-cmake/linux_x86_64/config.h rename to contrib/unixodbc-cmake/linux_x86_64/private/config.h