diff --git a/CMakeLists.txt b/CMakeLists.txt index 3a00eb10..2c525765 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -84,7 +84,7 @@ endif() # Utility programs install(PROGRAMS ${PROJECT_SOURCE_DIR}/scripts/sqlpp23-ddl2cpp - DESTINATION ${CMAKE_INSTALL_BINDIR} + DESTINATION tools/sqlpp23 ) ### Packaging diff --git a/cmake/configs/Sqlpp23Config.cmake b/cmake/configs/Sqlpp23Config.cmake index b90923c4..1eb6adbe 100644 --- a/cmake/configs/Sqlpp23Config.cmake +++ b/cmake/configs/Sqlpp23Config.cmake @@ -57,7 +57,7 @@ add_library(sqlpp23::sqlpp23 ALIAS sqlpp23::core) # Import "ddl2cpp" script if(NOT TARGET sqlpp23::ddl2cpp) - get_filename_component(sqlpp23_ddl2cpp_location "${CMAKE_CURRENT_LIST_DIR}/../../../bin/sqlpp23-ddl2cpp" REALPATH) + get_filename_component(sqlpp23_ddl2cpp_location "${CMAKE_CURRENT_LIST_DIR}/../../tools/sqlpp23/sqlpp23-ddl2cpp" REALPATH) if(NOT EXISTS "${sqlpp23_ddl2cpp_location}") message(FATAL_ERROR "The imported target sqlpp23::ddl2cpp references the file '${sqlpp23_ddl2cpp_location}' but this file does not exists.") endif()