From 0ce75ed958e4fbd114f11f9ef55cf4ca2e5cb427 Mon Sep 17 00:00:00 2001 From: Lars Bilke <lars.bilke@ufz.de> Date: Thu, 23 Feb 2023 13:58:18 +0100 Subject: [PATCH] [cmake] CMAKE_GENERATOR should be taken into account for ext cache dir. --- scripts/cmake/BuildExternalProject.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/cmake/BuildExternalProject.cmake b/scripts/cmake/BuildExternalProject.cmake index 40ac7a16a61..47e0b677b72 100644 --- a/scripts/cmake/BuildExternalProject.cmake +++ b/scripts/cmake/BuildExternalProject.cmake @@ -34,7 +34,7 @@ function(BuildExternalProject target) IS_PREFIX PROJECT_BINARY_DIR "${CPM_SOURCE_CACHE}" _is_inside_build ) if(NOT _is_inside_build) - string(SHA256 _hash "${ARGN_STRING}") + string(SHA256 _hash "${CMAKE_GENERATOR};${ARGN_STRING}") set(build_dir "${CPM_SOURCE_CACHE}/_ext/${target}/${_hash}") endif() endif() -- GitLab