Equivalent of CMAKE_PREFIX_PATH in CLion

别来无恙 提交于 2019-12-24 19:30:33

问题


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?


回答1:


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:



来源:https://stackoverflow.com/questions/54444846/equivalent-of-cmake-prefix-path-in-clion

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!