I'm building a Qt project with CMake and on the command line I have to give -DCMAKE_PREFIX_PATH=<path-to-qt>
for CMake to be able to find Qt.
Now I opened this project in CLion and as expected it didn't find Qt. What is the CLion equivalent of -DCMAKE_PREFIX_PATH=...
on the command line?
First, open the CMake panel (press the CMake button on the toolbar at the bottom of the main window). The goto CMake settings like shown below:
In the settings dialog you can now configure CMake as required and also set the
CMAKE_PREFIX_PATH
option: