From c17c6d6aafe04a5fde4252f52e5af7af14d99862 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 19 Dec 2015 00:43:08 +0000 Subject: Fix PERL_EXECUTABLE #define to use properly-escaped path --- infrastructure/cmake/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'infrastructure') diff --git a/infrastructure/cmake/CMakeLists.txt b/infrastructure/cmake/CMakeLists.txt index 5f7bd608..7c996dff 100644 --- a/infrastructure/cmake/CMakeLists.txt +++ b/infrastructure/cmake/CMakeLists.txt @@ -280,5 +280,6 @@ find_library(pcred_lib_path pcred ${base_dir}/../pcre-win32/lib) target_link_libraries(lib_common PUBLIC "${pcreposixd_lib_path}" "${pcred_lib_path}") # Define the location of the Perl executable, needed by testbackupstorefix -cmake_to_native_path(PERL_EXECUTABLE perl_executable_native) -target_compile_definitions(test_backupstorefix PRIVATE -DPERL_EXECUTABLE="${perl_executable_native}") +cmake_to_native_path("${PERL_EXECUTABLE}" perl_executable_native) +string(REPLACE "\\" "\\\\" perl_path_escaped ${perl_executable_native}) +target_compile_definitions(test_backupstorefix PRIVATE -DPERL_EXECUTABLE="${perl_path_escaped}") -- cgit v1.2.3