From a8ab8648a7e1286720e4f0af8d50cb183eac09dc Mon Sep 17 00:00:00 2001 From: Alexis Placet Date: Fri, 27 Oct 2023 12:01:39 +0200 Subject: [PATCH] Convert backslash characters in CONAN_GENERATORS_FOLDER to avoid escaping on Windows --- conan_provider.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/conan_provider.cmake b/conan_provider.cmake index 7d397ba1..f6a016cc 100644 --- a/conan_provider.cmake +++ b/conan_provider.cmake @@ -386,6 +386,7 @@ function(conan_install) # one is specified, but we don't know a priori where this is. # TODO: this can be made more robust if Conan can provide this in the json output string(JSON CONAN_GENERATORS_FOLDER GET ${conan_stdout} graph nodes 0 generators_folder) + cmake_path(CONVERT ${CONAN_GENERATORS_FOLDER} TO_CMAKE_PATH_LIST CONAN_GENERATORS_FOLDER) # message("conan stdout: ${conan_stdout}") message(STATUS "CMake-Conan: CONAN_GENERATORS_FOLDER=${CONAN_GENERATORS_FOLDER}") set_property(GLOBAL PROPERTY CONAN_GENERATORS_FOLDER "${CONAN_GENERATORS_FOLDER}")