"ld cannot find -lomp"


The compiler cannot find the correct library of the OpenMP, even though I’ve already run ldconfig with a file with the line “/usr/lib/llvm-12/lib”, and I also tried to link the library through the flag -L/usr/lib/llvm-12/lib.
What else should I do? I’m building my project with Cmake with the CLion IDE.