Issue: The specified compiler version in environment variables and CMake commands does not reflect correctly due to a path specification issue.
Description
I am attempting to specify clang-14 and clang++-14 as my project's C and C++ compilers on Ubuntu 22. However, due to a mistake in the path specification, the expected compiler version is not being used.
Steps to Reproduce
Initially set the environment variables to specify clang-14 and clang++14 (incorrect path) as the compilers:
Realize the mistake in the path for clang++-14 (it was mistakenly specified as clang++14), which might lead to an incorrect compiler version being used or a failure in locating the compiler.
Environment
Description
I am attempting to specify
clang-14
andclang++-14
as my project's C and C++ compilers on Ubuntu 22. However, due to a mistake in the path specification, the expected compiler version is not being used.Steps to Reproduce
clang-14
andclang++14
(incorrect path) as the compilers:clang++-14
(it was mistakenly specified asclang++14
), which might lead to an incorrect compiler version being used or a failure in locating the compiler.Correct Steps (for clarity)
To rectify this, the correct steps should be:
And then run CMake as:
Expected Behavior
After correcting the path, the project should compile using
clang-14
andclang++-14
as expected.Additional Information
This issue is specifically noted on Ubuntu 22.