<div dir="ltr">Hi all macports fans,<div><br></div><div>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). </div><div><br></div><div>I tried to set cmake.build_dir to ${prefix}/share/abc/abc${abc.version}/</div><div><br></div><div>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. </div><div><br></div><div>Any guidance on how to customize the CMake build directory? Thanks folks!</div><div><br></div><div>





<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(233,253,255);background-color:rgb(45,45,45)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">:info:configure CMake Error at /opt/local/share/cmake-3.14/Modules/CMakeDetermineSystem.cmake:173 (file):</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(233,253,255);background-color:rgb(45,45,45)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">:info:configure <span class="gmail-Apple-converted-space">  </span>file failed to open for writing (No such file or directory):</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(233,253,255);background-color:rgb(45,45,45)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">:info:configure <span class="gmail-Apple-converted-space">    </span>/opt/local/share/abc/abc4.10.5/CMakeFiles/CMakeOutput.log</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(233,253,255);background-color:rgb(45,45,45)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">...</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(233,253,255);background-color:rgb(45,45,45)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">...</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Monaco;color:rgb(233,253,255);background-color:rgb(45,45,45)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">...(similar CMake errors)</span></p></div></div>