Move files into /cmake/ instead of a cppbessot subdir of it

This commit is contained in:
2026-02-28 03:14:01 -04:00
parent 6891210867
commit 621195044f
14 changed files with 11 additions and 11 deletions

View File

@@ -25,10 +25,10 @@ function(cppbessot_add_db_gen_migrations_target from_version to_version)
add_custom_target(db_gen_migrations
COMMAND "${CMAKE_COMMAND}"
-DCPPBESSOT_ODB_EXECUTABLE="${CPPBESSOT_ODB_EXECUTABLE}"
-DCPPBESSOT_FROM_VERSION_DIR="${_from_dir}"
-DCPPBESSOT_TO_VERSION_DIR="${_to_dir}"
-DCPPBESSOT_MIGRATION_DIR="${_migration_dir}"
-DCPPBESSOT_ODB_EXECUTABLE=${CPPBESSOT_ODB_EXECUTABLE}
-DCPPBESSOT_FROM_VERSION_DIR=${_from_dir}
-DCPPBESSOT_TO_VERSION_DIR=${_to_dir}
-DCPPBESSOT_MIGRATION_DIR=${_migration_dir}
-P "${CMAKE_CURRENT_LIST_DIR}/scripts/run_odb_migrations.cmake"
COMMENT "Generating DB migrations: ${from_version} -> ${to_version}"
VERBATIM

View File

@@ -15,8 +15,8 @@ function(cppbessot_add_db_gen_odb_target version)
add_custom_target(db_gen_odb_logic
COMMAND "${CMAKE_COMMAND}"
-DCPPBESSOT_ODB_EXECUTABLE="${CPPBESSOT_ODB_EXECUTABLE}"
-DCPPBESSOT_VERSION_DIR="${_version_dir}"
-DCPPBESSOT_ODB_EXECUTABLE=${CPPBESSOT_ODB_EXECUTABLE}
-DCPPBESSOT_VERSION_DIR=${_version_dir}
-P "${CMAKE_CURRENT_LIST_DIR}/scripts/run_odb_logic.cmake"
DEPENDS db_gen_cpp_headers
COMMENT "Generating ODB ORM sources for ${version} (sqlite + postgre)"

View File

@@ -15,8 +15,8 @@ function(cppbessot_add_db_gen_sql_ddl_target version)
add_custom_target(db_gen_sql_ddl
COMMAND "${CMAKE_COMMAND}"
-DCPPBESSOT_ODB_EXECUTABLE="${CPPBESSOT_ODB_EXECUTABLE}"
-DCPPBESSOT_VERSION_DIR="${_version_dir}"
-DCPPBESSOT_ODB_EXECUTABLE=${CPPBESSOT_ODB_EXECUTABLE}
-DCPPBESSOT_VERSION_DIR=${_version_dir}
-P "${CMAKE_CURRENT_LIST_DIR}/scripts/run_odb_sql_ddl.cmake"
DEPENDS db_gen_cpp_headers
COMMENT "Generating SQL DDL snapshots for ${version} (sqlite + postgre)"

View File

@@ -14,9 +14,9 @@ function(cppbessot_add_db_check_schema_changes_target)
add_custom_target(db_check_schema_changes
COMMAND "${CMAKE_COMMAND}"
-DCPPBESSOT_GIT_EXECUTABLE="${CPPBESSOT_GIT_EXECUTABLE}"
-DCPPBESSOT_WORKDIR_ABS="${_workdir}"
-DCPPBESSOT_PROJECT_SOURCE_DIR="${PROJECT_SOURCE_DIR}"
-DCPPBESSOT_GIT_EXECUTABLE=${CPPBESSOT_GIT_EXECUTABLE}
-DCPPBESSOT_WORKDIR_ABS=${_workdir}
-DCPPBESSOT_PROJECT_SOURCE_DIR=${PROJECT_SOURCE_DIR}
-P "${CMAKE_CURRENT_LIST_DIR}/scripts/check_schema_changes.cmake"
COMMENT "Checking for schema changes under ${CPPBESSOT_WORKDIR}"
VERBATIM