From c91a935202281bdc21ccb898b0fd1a1e5b96102f Mon Sep 17 00:00:00 2001 From: Daniel Simon Date: Tue, 29 Oct 2024 15:50:45 -0700 Subject: [PATCH] Fixed sql_filelist.cmake relative path issue `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. --- data/sql_filelist.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/sql_filelist.cmake b/data/sql_filelist.cmake index 2b95192958..2429d406fa 100644 --- a/data/sql_filelist.cmake +++ b/data/sql_filelist.cmake @@ -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"