Add the installation prefix of “Qt5Widgets” to CMAKE_PREFIX_PATH

后端 未结 5 1658
暗喜
暗喜 2020-12-14 15:08

I don\'t know a lot about cmake, I\'m trying to build a client using cmake and Qt. Getting the following error:

CMake Error at alethzero/CMakeLists.tx

5条回答
  •  无人及你
    2020-12-14 15:39

    I needed this on my macOS after Qt installation with brew install qt5:

    export CMAKE_PREFIX_PATH=/usr/local/Cellar/qt5/5.7.0/
    

提交回复
热议问题