diff --git a/flightsql-odbc/flightsql-odbc-clone/flightsql-odbc/flight_sql/CMakeLists.txt b/flightsql-odbc/flightsql-odbc-clone/flightsql-odbc/flight_sql/CMakeLists.txt index 0620f6825ddbd..e6653f79b1703 100644 --- a/flightsql-odbc/flightsql-odbc-clone/flightsql-odbc/flight_sql/CMakeLists.txt +++ b/flightsql-odbc/flightsql-odbc-clone/flightsql-odbc/flight_sql/CMakeLists.txt @@ -26,18 +26,18 @@ SET(Arrow_STATIC ON) include(ExternalProject) set(ARROW_CMAKE_ARGS - -DARROW_FLIGHT=ON - -DARROW_FLIGHT_SQL=ON - -DARROW_IPC=ON - -DARROW_COMPUTE=OFF - -DARROW_BUILD_SHARED=OFF - -DARROW_BUILD_STATIC=ON - -DARROW_COMPUTE=ON - -DARROW_BUILD_TESTS=OFF - -DARROW_DEPENDENCY_USE_SHARED=OFF - -DCMAKE_DEPENDS_USE_COMPILER=FALSE - -DCMAKE_INSTALL_PREFIX=${CMAKE_CURRENT_BINARY_DIR}/ApacheArrow-prefix/src/ApacheArrow-install - ${CMAKE_CURRENT_BINARY_DIR}/ApacheArrow-prefix/src/ApacheArrow/cpp + -DARROW_FLIGHT=ON + -DARROW_FLIGHT_SQL=ON + -DARROW_IPC=ON + -DARROW_COMPUTE=OFF + -DARROW_BUILD_SHARED=OFF + -DARROW_BUILD_STATIC=ON + -DARROW_COMPUTE=ON + -DARROW_BUILD_TESTS=OFF + -DARROW_DEPENDENCY_USE_SHARED=OFF + -DCMAKE_DEPENDS_USE_COMPILER=FALSE + -DCMAKE_INSTALL_PREFIX=${CMAKE_CURRENT_BINARY_DIR}/ApacheArrow-prefix/src/ApacheArrow-install + ${CMAKE_CURRENT_BINARY_DIR}/ApacheArrow-prefix/src/ApacheArrow/cpp ) if(NOT ARROW_GIT_REPOSITORY) @@ -49,9 +49,9 @@ endif() message("Using Arrow from ${ARROW_GIT_REPOSITORY} on tag ${ARROW_GIT_TAG}") ExternalProject_Add(ApacheArrow - GIT_REPOSITORY ${ARROW_GIT_REPOSITORY} - GIT_TAG ${ARROW_GIT_TAG} - CMAKE_ARGS ${ARROW_CMAKE_ARGS}) + GIT_REPOSITORY ${ARROW_GIT_REPOSITORY} + GIT_TAG ${ARROW_GIT_TAG} + CMAKE_ARGS ${ARROW_CMAKE_ARGS}) include_directories(${CMAKE_CURRENT_BINARY_DIR}/ApacheArrow-prefix/src/ApacheArrow-install/include) link_directories(${CMAKE_CURRENT_BINARY_DIR}/ApacheArrow-prefix/src/ApacheArrow-install/lib) @@ -101,11 +101,11 @@ add_library(arrow_odbc_spi_impl ${ARROW_ODBC_SPI_SOURCES}) add_dependencies(arrow_odbc_spi_impl ApacheArrow) set_target_properties(arrow_odbc_spi_impl - PROPERTIES - ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/$/lib - LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/$/lib - RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/$/lib - ) + PROPERTIES + ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/$/lib + LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/$/lib + RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/$/lib +) target_link_libraries(arrow_odbc_spi_impl spi ${ARROW_ODBC_SPI_THIRDPARTY_LIBS}) target_include_directories(arrow_odbc_spi_impl PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) @@ -113,9 +113,9 @@ target_include_directories(arrow_odbc_spi_impl PUBLIC ${CMAKE_CURRENT_SOURCE_DIR # CLI add_executable(arrow_odbc_spi_impl_cli main.cc) set_target_properties(arrow_odbc_spi_impl_cli - PROPERTIES - RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/$/bin - ) + PROPERTIES + RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/$/bin +) target_link_libraries(arrow_odbc_spi_impl_cli arrow_odbc_spi_impl) # Unit tests @@ -126,8 +126,8 @@ set(ARROW_ODBC_SPI_TEST_SOURCES add_executable(arrow_odbc_spi_impl_test ${ARROW_ODBC_SPI_TEST_SOURCES}) add_dependencies(arrow_odbc_spi_impl_test ApacheArrow) set_target_properties(arrow_odbc_spi_impl_test - PROPERTIES - RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/test/$/bin - ) + PROPERTIES + RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/test/$/bin +) target_link_libraries(arrow_odbc_spi_impl_test arrow_odbc_spi_impl gtest gtest_main) add_test(connection_test arrow_odbc_spi_impl_test)