On conda gcc/g++ compiler are not named gcc or g++ but x86_64-conda-linux-gnu-c++. When we use the cmake presets, cmake point to the system wide compiler (as it is required in the preset) and not the conda compiler. Compiler packages set environment variables to point cmake to the correct compiler.
Questions/Ideas
do not use presets and let cmake find the conda compiler
Description
On conda gcc/g++ compiler are not named gcc or g++ but
x86_64-conda-linux-gnu-c++
. When we use the cmake presets, cmake point to the system wide compiler (as it is required in the preset) and not the conda compiler. Compiler packages set environment variables to point cmake to the correct compiler.Questions/Ideas