Errors when changing cmake build directory

Ao Liu ao at
Thu May 2 16:40:13 UTC 2019

Hi all macports fans,

I'm recently learning to do some small modifications and enhancements on an
existing portfile. One way I found that would solve my problem was to
modify the build dir of cmake. (The PortGroup == cmake 1.1).

I tried to set cmake.build_dir to ${prefix}/share/abc/abc${abc.version}/

But it always throws an error and I believe it was because cmake can not
write to the above directory. I tried to chown the directory to macports,
still doesn't work.

Any guidance on how to customize the CMake build directory? Thanks folks!

:info:configure CMake Error at
/opt/local/share/cmake-3.14/Modules/CMakeDetermineSystem.cmake:173 (file):

:info:configure   file failed to open for writing (No such file or




...(similar CMake errors)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the macports-dev mailing list