samples/CMakeLists.txt should be qualified
Otherwise the build just fails...
Otherwise, nice job on the cmake.
if(WITHCUDA)
add_subdirectory( Ch21_migrating_cuda_code )
endif()
although a suggestion ...
mkdir build
cd build
cmake -S .. -D .
make
would keep all the build data from cluttering up the source tree.
Also, I added this to .bashrc
if [[ -z "$SETVARS_COMPLETED" ]]; then
source /opt/intel/oneapi/setvars.sh
fi
Otherwise vscode complains when you create a new term.