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