Skip to content

Commit

Permalink
Fixed sql_filelist.cmake relative path issue
Browse files Browse the repository at this point in the history
`CMAKE_CURRENT_SOURCE_DIR` is relative to the file that includes `sql_filelist.cmake` not relative to `sql_filelist.cmake` itself. This allows running the module from other portions of a cmake script, for example in a consuming project with FetchContent.
  • Loading branch information
dbs4261 authored and github-actions[bot] committed Oct 30, 2024
1 parent c14c9df commit c91a935
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/sql_filelist.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
set(SQL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/sql")
set(SQL_DIR "${CMAKE_CURRENT_LIST_DIR}/sql")

set(SQL_FILES_CONSISTENCY_CHECKS_TRIGGERS
"${SQL_DIR}/consistency_checks_triggers.sql"
Expand Down

0 comments on commit c91a935

Please sign in to comment.