From 88c835bd0e64ff56995b73b3d20ed275ad74e07a Mon Sep 17 00:00:00 2001 From: Robert Adam Date: Wed, 3 Jan 2024 17:22:37 +0100 Subject: [PATCH] Configure soci-config.h (empty for now) --- src/core/CMakeLists.txt | 4 ++++ {include/soci => src/core}/soci-config.h.in | 0 2 files changed, 4 insertions(+) rename {include/soci => src/core}/soci-config.h.in (100%) diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index c30973bf4..18feb06be 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -23,6 +23,10 @@ add_library(soci_core_objects OBJECT "values.cpp" ) +# TODO: Actually populate this config file with something useful +configure_file("${CMAKE_CURRENT_SOURCE_DIR}/soci-config.h.in" "${CMAKE_CURRENT_BINARY_DIR}/include/soci/soci-config.h") +target_include_directories(soci_core_objects PUBLIC "${CMAKE_CURRENT_BINARY_DIR}/include") + target_link_libraries(soci_core_objects PRIVATE Threads::Threads) if (SOCI_BOOST) diff --git a/include/soci/soci-config.h.in b/src/core/soci-config.h.in similarity index 100% rename from include/soci/soci-config.h.in rename to src/core/soci-config.h.in