I installed clang compiler via Visual Studio 2022 installer. With the VS2022 developer command prompt, I configure my cmake / vcpkg with the x64-win-llvm-static-md set as triplet.
It seems the extra arguments in the following find_program cause it to fail.
# this fails to find clang
#find_program(CLANG-CL_EXECUTBALE NAMES "clang-cl" "clang-cl.exe" PATHS "${POSSIBLE_LLVM_BIN_DIR}"
# ENV LLVMInstallDir
# PATH_SUFFIXES "bin"
# NO_DEFAULT_PATH)
# this on the other hand succeeds:
find_program(CLANG-CL_EXECUTBALE NAMES "clang-cl" "clang-cl.exe")
Hi, thank you for the great triplets.
I installed clang compiler via Visual Studio 2022 installer. With the VS2022 developer command prompt, I configure my cmake / vcpkg with the x64-win-llvm-static-md set as triplet.
It seems the extra arguments in the following
find_program
cause it to fail.any idea why? can this be fixed more cleanly?