How to set the CMAKE_PREFIX_PATH?

前端 未结 2 1790
粉色の甜心
粉色の甜心 2021-01-12 02:06

I have a problem with the global environmental variable CMAKE_PREFIX_PATH. I already set this and I can see it is set when I type env, but when I r

相关标签:
2条回答
  • 2021-01-12 02:43

    Try to run cmake -DCMAKE_PREFIX_PATH=/your/path .

    0 讨论(0)
  • 2021-01-12 02:48

    CMAKE_PREFIX_PATH works as a build directive, rather than as an environment variable. Moreover, you may perform the build into a dedicated temporary directory (it's cleaner, because when done, you can remove that temporary directory and you get back a clean pristine source tree).

    $ mkdir -p tmpbuild && cd tmpbuild
    $ cmake -DCMAKE_PREFIX_PATH=~/deliveries/hiphop ..
    $ make install
    $ cd ..
    
    0 讨论(0)
提交回复
热议问题