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 run cmake .
to build HipHop, it tells me that the variable isn't set.
Is there a way I can hard-code this into the makefiles?
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).
CMake will use whatever path the running CMake executable is in. Furthermore, it may get confused if you switch paths between runs without clearing the cache. So what you have to do is simply instead of running cmake <path_to_src> from the command line, run ~/usr/cmake-path/bin/cmake <path_to_src> .
Try to run cmake -DCMAKE_PREFIX_PATH=/your/path .
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With