This was fixed in CVS CMake and will be in the CMake 2.6.3 release.<div><br></div><div>You can fix it locally on 2.6.2 if you want by replacing the line in Modules/Platforms/Darwin.cmake which reads:<br><div> SET(CMAKE_INSTALL_NAME_TOOL install_name_tool)</div>
<div><br></div><div>with:</div><div><div> FIND_PROGRAM(CMAKE_INSTALL_NAME_TOOL install_name_tool)</div><div><br></div><div><br></div><div>HTH,</div><div>David</div><div><br></div><div><br></div></div><div class="gmail_quote">
On Thu, Jan 22, 2009 at 11:14 AM, Phipps, Eric T <span dir="ltr"><<a href="mailto:etphipp@sandia.gov">etphipp@sandia.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
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. I am having trouble using cmake on Mac OS 10.5.5, in<br>
particular trying to compile Trilinos with cmake. 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. 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>
Could not find install_name_tool, please check your installation.<br>
Call Stack (most recent call first):<br>
/Applications/CMake<br>
2.6-2.app/Contents/share/cmake-2.6/Modules/CMakeDetermineCXXCompiler.cmake:1<br>
65 (INCLUDE)<br>
cmake/package_arch/PackageArchGlobalMacros.cmake:1266 (ENABLE_LANGUAGE)<br>
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>
file:/Users/etphipp/development/Trilinos/Dev/Trilinos/cmake_build/CMakeFiles<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. Note that install_name_tool does exist on the system:<br>
<br>
-r-xr-xr-x 1 root wheel 263K Sep 23 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. Attached is the result of running "cmake<br>
--system-information". Note that it says that CMAKE_CXX_COMPILER_ENV_VAR is<br>
set to "CXX".<br>
<br>
Any help would be appreciated. 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="mailto:etphipp@sandia.gov">etphipp@sandia.gov</a><br>
<br>
</font><br>_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br></div>