diff options
Diffstat (limited to 'systemtests/cmake/BareosSystemtestFunctions.cmake')
-rw-r--r-- | systemtests/cmake/BareosSystemtestFunctions.cmake | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/systemtests/cmake/BareosSystemtestFunctions.cmake b/systemtests/cmake/BareosSystemtestFunctions.cmake index 05862ff67..f7f6d93cb 100644 --- a/systemtests/cmake/BareosSystemtestFunctions.cmake +++ b/systemtests/cmake/BareosSystemtestFunctions.cmake @@ -17,10 +17,6 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301, USA. -cmake_policy(SET CMP0057 NEW) # IF(.. IN_LIST ..) -cmake_policy(SET CMP0053 NEW) -cmake_policy(SET CMP0064 NEW) # IF(TEST ...) - macro(create_systemtests_directory) configurefilestosystemtest("systemtests" "data" "*.tgz" COPYONLY "") configurefilestosystemtest("systemtests" "data" "*.gz" COPYONLY "") @@ -347,6 +343,14 @@ macro(prepare_testdir_for_daemon_run) set(backenddir ${BACKEND_DIR_TO_TEST}) set(sd_backenddir ${SD_BACKEND_DIR_TO_TEST}) + # the SD will not suppot the BackendDirectory setting if it was not built with + # HAVE_DYNAMIC_SD_BACKENDS, thus we declare `sd_backend_config` that will + # evaluate to nothing if we don't have dynamic backends enabled. + if(HAVE_DYNAMIC_SD_BACKENDS) + set(sd_backend_config "BackendDirectory = \"${SD_BACKEND_DIR_TO_TEST}\"") + else() + set(sd_backend_config "") + endif() set(BAREOS_WEBUI_PUBLIC_DIR ${WEBUI_PUBLIC_DIR_TO_TEST}) set(dbHost ${current_test_directory}/tmp) |