<HTML>
<HEAD>
<TITLE>Re: [CMake] Problem with cmake 2.6.2 on Mac OS 10.5.5</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Thanks David. &nbsp;The fix you suggested worked.<BR>
<BR>
-Eric<BR>
<BR>
<BR>
On 1/22/09 9:21 AM, &quot;David Cole&quot; &lt;<a href="david.cole@kitware.com">david.cole@kitware.com</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>This was fixed in CVS CMake and will be in the CMake 2.6.3 release.<BR>
<BR>
You can fix it locally on 2.6.2 if you want by replacing the line in Modules/Platforms/Darwin.cmake which reads:<BR>
&nbsp;&nbsp;SET(CMAKE_INSTALL_NAME_TOOL install_name_tool)<BR>
<BR>
with:<BR>
&nbsp;&nbsp;FIND_PROGRAM(CMAKE_INSTALL_NAME_TOOL install_name_tool)<BR>
<BR>
<BR>
HTH,<BR>
David<BR>
<BR>
<BR>
On Thu, Jan 22, 2009 at 11:14 AM, Phipps, Eric T &lt;<a href="etphipp@sandia.gov">etphipp@sandia.gov</a>&gt; wrote:<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hello,<BR>
<BR>
I apologize if this is a duplicate of a previous posting, but after<BR>
extensive searching I haven't been able to find anything related to the<BR>
trouble I am having. &nbsp;I am having trouble using cmake on Mac OS 10.5.5, in<BR>
particular trying to compile Trilinos with cmake. &nbsp;I have tried the<BR>
precompiled 2.6.2 Mac binary on the cmake download page, and the same<BR>
version compiled locally through macports. &nbsp;In both cases I get the<BR>
following two errors in the cmake output when trying to configure Trilinos:<BR>
<BR>
-- The CXX compiler identification is GNU<BR>
CMake Error at /Applications/CMake<BR>
2.6-2.app/Contents/share/cmake-2.6/Modules/CMakeFindBinUtils.cmake:59<BR>
(MESSAGE):<BR>
&nbsp;&nbsp;Could not find install_name_tool, please check your installation.<BR>
Call Stack (most recent call first):<BR>
&nbsp;&nbsp;/Applications/CMake<BR>
2.6-2.app/Contents/share/cmake-2.6/Modules/CMakeDetermineCXXCompiler.cmake:1<BR>
65 (INCLUDE)<BR>
&nbsp;&nbsp;cmake/package_arch/PackageArchGlobalMacros.cmake:1266 (ENABLE_LANGUAGE)<BR>
&nbsp;&nbsp;CMakeLists.txt:227 (PACKAGE_ARCH_SETUP_ENV)<BR>
<BR>
<BR>
CMake Error: Error required internal CMake variable not set, cmake may be<BR>
not be built correctly.<BR>
Missing variable is:<BR>
CMAKE_CXX_COMPILER_ENV_VAR<BR>
CMake Error: Could not find cmake module<BR>
<a href="file:/Users/etphipp/development/Trilinos/Dev/Trilinos/cmake_build/CMakeFiles">file:/Users/etphipp/development/Trilinos/Dev/Trilinos/cmake_build/CMakeFiles</a><BR>
/CMakeCXXCompiler.cmake<BR>
-- Configuring incomplete, errors occurred!<BR>
<BR>
I am very new to cmake so I am not sure exactly what is causing these<BR>
errors. &nbsp;Note that install_name_tool does exist on the system:<BR>
<BR>
-r-xr-xr-x &nbsp;1 root &nbsp;wheel &nbsp;&nbsp;263K Sep 23 &nbsp;2007 /usr/bin/install_name_tool*<BR>
<BR>
I have no trouble compiling exactly the same Trilinos source with cmake<BR>
2.6.2 on linux. &nbsp;Attached is the result of running &quot;cmake<BR>
--system-information&quot;. &nbsp;Note that it says that CMAKE_CXX_COMPILER_ENV_VAR is<BR>
set to &quot;CXX&quot;.<BR>
<BR>
Any help would be appreciated. &nbsp;Thank you.<BR>
<BR>
-Eric<BR>
<BR>
--<BR>
<FONT COLOR="#888888">Eric T. Phipps, PhD<BR>
Senior Member of the Technical Staff<BR>
Optimization and Uncertainty Quantification Department<BR>
Sandia National Laboratories<BR>
Albuquerque, New Mexico, 87185-1318<BR>
505-284-9268 (Office)<BR>
505-845-7442 (Fax)<BR>
<a href="etphipp@sandia.gov">etphipp@sandia.gov</a><BR>
<BR>
</FONT><BR>
_______________________________________________<BR>
CMake mailing list<BR>
<a href="CMake@cmake.org">CMake@cmake.org</a><BR>
<a href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a><BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE>
</BODY>
</HTML>