I have this piece of code.
FIND_PACKAGE(Clang REQUIRED)
SET(CMAKE_C_COMPILER clang)
I would like to set clang as C compiler, but if I use it like this, it uses clang from system and not from FIND_PACKAGE. FIND_PACKAGE should set some variables like CLANG_INCLUDE_DIRS. I need variable with path to clang, but I have not found name of that variable or other variables. Where can I find it or what is the name of that variable ?
I use cmake 3.18