From bb5b59f31e35e516e7f046458050b265ee611175 Mon Sep 17 00:00:00 2001 From: Joris Vaillant Date: Mon, 20 Nov 2023 17:37:07 +0100 Subject: [PATCH] stub: try to avoid have ; replace by list separator (4rd try) --- stubs.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs.cmake b/stubs.cmake index c494ad33b..984f86794 100644 --- a/stubs.cmake +++ b/stubs.cmake @@ -114,7 +114,7 @@ function(GENERATE_STUBS module_path module_name module_install_dir) endforeach() string(REPLACE ";" "@" _path_cmake $ENV{PATH}) set(_path_cmake "${_target_path}${_path_cmake}") - string(REPLACE "@" "\;" _path_str ${_path_cmake}) + string(REPLACE "@" "\\\;" _path_str ${_path_cmake}) set(ENV_PATH "PATH=${_path_str}") endif()