Skip to content

Commit

Permalink
Merge pull request #579 from Alex-PLACET/fix-578
Browse files Browse the repository at this point in the history
#578 Convert backslash characters in CONAN_GENERATORS_FOLDER to avoid escaping on Windows
  • Loading branch information
memsharded authored Nov 2, 2023
2 parents 58f1653 + a8ab864 commit 586bc0b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions conan_provider.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,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}")
Expand Down

0 comments on commit 586bc0b

Please sign in to comment.