I am trying to install libarchive on macOS for my school project. I tried to do it using brew formulae, but CMake says that it can't detect it. How can I install libarchive in the right way?
What I tried:
brew install libarchive
What I got in CLion:
Could NOT find LibArchive (missing: LibArchive_INCLUDE_DIR)