<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Here is my recommendation:<div><br></div><div>Rebuild CMake with a CMAKE_INSTALL_PREFIX of /Applications/CMake (with the Qt option)</div><div><br></div><div>sudo make install</div><div><br></div><div>remove the cmake stuff from /usr/local/*</div><div><br></div><div>After cmake builds and installs you will need to ensure that you have write permissions to /opt/local/bin.</div><div>Launch CMake-Gui.app and use the GUI menu to create the sym links for you.</div><div><br></div><div>The main problem is that typically /usr/local needs higher privs than admin on OS X (depending on how it was setup). The CMake-GUI app does NOT take advantage of the authentication framework in OS X to authenticate you as an admin so trying to create the symlinks where the active user does NOT have write permissions will fail **.</div><div><br></div><div>The way I have done this is to "install" cmake into /Applications/CMake. Make /Applications/CMake writable by everyone, then have CMake-GUI create the symlinks in /Applications/CMake. Then add /Applications/CMake to your PATH variable AHEAD of /opt/local/bin.</div><div><br></div><div>Just my 2 cents.</div><div><br></div><div>** I guess I should look at how to implement that and submit a patch***</div><div><br></div><div>*** Not that I am volunteering to write the code.. ;-) (yet)<br><div> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Bitstream Vera Sans; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">-- </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Mike Jackson Senior Research Engineer</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Innovative Management & Technology Services</div><br class="Apple-interchange-newline"></span> </div><br><div><div>On Aug 19, 2008, at 1:53 PM, Darren Weber wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><br><div>I've got a cvs checkout of CMake-2-6-1.</div><div><br></div><div>I created a build directory and configured first for a Qt GUI. The build completed and installed into /usr/local/CMake 2.6-1.app/. Then, to ensure this version is in the default Applications directory:</div> <div>sudo cp -rf /usr/local/CMake* /Applications/</div><div><br></div><div>I then tried to use the GUI interface to create symlinks for the command line (Tools > Install for Command Line Use), but it failed.</div><div> <br></div><div>I then reconfigured the build for a curses interface, built, and installed that. It installed:</div><div><br></div><div><div>-- Installing: /usr/local/bin/ccmake</div><div>-- Installing: /usr/local/bin/cmake</div> <div>-- Installing: /usr/local/bin/cmakexbuild</div><div>-- Installing: /usr/local/bin/cpack</div><div>-- Installing: /usr/local/bin/ctest</div><div><br></div></div><div>That's fine, but on this OSX system, cmake was first installed by macports into /opt/local/bin/ and this is the first entry on the $PATH. So I could re-route the path or overwrite the macports install with symlinks to this build (I prefer the latter).</div> <div><br></div><div>Is there a command line utility or a make instruction to create all the symlinks? Does it have an option to specify the root bin directory? Something like:</div><div><br></div><div>make symlinks /usr/bin</div> <div><br></div><div>or</div><div><br></div><div>make symlinks /opt/local/bin</div><div><br></div><div>Thanks, Darren</div><div><br></div></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">CMake mailing list</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="mailto:CMake@cmake.org">CMake@cmake.org</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a></div> </blockquote></div><br></div></body></html>