Skip to content
Snippets Groups Projects
Unverified Commit 99a5c595 authored by Lars Bilke's avatar Lars Bilke
Browse files

[cmake] Different MSVC versions create different cpm ext project builds.

Will rebuild all ext packages on msvc.
parent 80b8f326
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,11 @@ macro(BuildExternalProject_set_build_dir target argn_string)
IS_PREFIX PROJECT_BINARY_DIR "${CPM_SOURCE_CACHE}" _is_inside_build
)
if(NOT _is_inside_build)
string(SHA256 _hash "${CMAKE_GENERATOR};${argn_string}")
string(
SHA256
_hash
"${CMAKE_GENERATOR};${argn_string}${MSVC_TOOLSET_VERSION}"
)
set(build_dir "${CPM_SOURCE_CACHE}/_ext/${target}/${_hash}")
endif()
endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment