From a38b475e90b8bdbfb401b1b39192cc61a9826f61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Mon, 27 Apr 2020 10:22:51 +0300 Subject: [PATCH] Fix add_template The path to the coniguration file must be an absolute path (CMAKE_SOURCE_DIR) instead of a relative one (CMAKE_CURRENT_SOURCE_DIR). This fixes cdc_datatypes. --- maxscale-system-test/utilities.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maxscale-system-test/utilities.cmake b/maxscale-system-test/utilities.cmake index 02210754e..905c6f203 100644 --- a/maxscale-system-test/utilities.cmake +++ b/maxscale-system-test/utilities.cmake @@ -10,7 +10,7 @@ endfunction() # Helper function to add a configuration template to the global test definitions list. # Parameters are as in add_test_executable(). function(add_template name template labels) - set(config_template_path "${CMAKE_CURRENT_SOURCE_DIR}/cnf/maxscale.cnf.template.${template}") + set(config_template_path "${CMAKE_SOURCE_DIR}/maxscale-system-test/cnf/maxscale.cnf.template.${template}") set(new_def "{\"${name}\", \"${config_template_path}\", \"${labels}\"}") set(TEST_DEFINITIONS "${TEST_DEFINITIONS}${new_def}," CACHE INTERNAL "") endfunction()