I found that we are not cleaning up CMAKE_PREFIX_PATH between environments. This leads to CMAKE_PREFIX_PATH having an entry for every environment that's been activated (if it has the compiler in the run section).
AnacondaRecipes/vs2022-feedstock#6
Originally posted by @ELundby45 in #90 (comment)