This was fixed in CVS CMake and will be in the CMake 2.6.3 release.
You can fix it locally on 2.6.2 if you want by replacing the line in
Modules/Platforms/Darwin.cmake which reads:
  SET(CMAKE_INSTALL_NAME_TOOL install_name_tool)

with:
  FIND_PROGRAM(CMAKE_INSTALL_NAME_TOOL install_name_tool)


HTH,
David


On Thu, Jan 22, 2009 at 11:14 AM, Phipps, Eric T <[email protected]> wrote:

> Hello,
>
> I apologize if this is a duplicate of a previous posting, but after
> extensive searching I haven't been able to find anything related to the
> trouble I am having.  I am having trouble using cmake on Mac OS 10.5.5, in
> particular trying to compile Trilinos with cmake.  I have tried the
> precompiled 2.6.2 Mac binary on the cmake download page, and the same
> version compiled locally through macports.  In both cases I get the
> following two errors in the cmake output when trying to configure Trilinos:
>
> -- The CXX compiler identification is GNU
> CMake Error at /Applications/CMake
> 2.6-2.app/Contents/share/cmake-2.6/Modules/CMakeFindBinUtils.cmake:59
> (MESSAGE):
>  Could not find install_name_tool, please check your installation.
> Call Stack (most recent call first):
>  /Applications/CMake
>
> 2.6-2.app/Contents/share/cmake-2.6/Modules/CMakeDetermineCXXCompiler.cmake:1
> 65 (INCLUDE)
>  cmake/package_arch/PackageArchGlobalMacros.cmake:1266 (ENABLE_LANGUAGE)
>  CMakeLists.txt:227 (PACKAGE_ARCH_SETUP_ENV)
>
>
> CMake Error: Error required internal CMake variable not set, cmake may be
> not be built correctly.
> Missing variable is:
> CMAKE_CXX_COMPILER_ENV_VAR
> CMake Error: Could not find cmake module
>
> file:/Users/etphipp/development/Trilinos/Dev/Trilinos/cmake_build/CMakeFiles
> /CMakeCXXCompiler.cmake
> -- Configuring incomplete, errors occurred!
>
> I am very new to cmake so I am not sure exactly what is causing these
> errors.  Note that install_name_tool does exist on the system:
>
> -r-xr-xr-x  1 root  wheel   263K Sep 23  2007 /usr/bin/install_name_tool*
>
> I have no trouble compiling exactly the same Trilinos source with cmake
> 2.6.2 on linux.  Attached is the result of running "cmake
> --system-information".  Note that it says that CMAKE_CXX_COMPILER_ENV_VAR
> is
> set to "CXX".
>
> Any help would be appreciated.  Thank you.
>
> -Eric
>
> --
> Eric T. Phipps, PhD
> Senior Member of the Technical Staff
> Optimization and Uncertainty Quantification Department
> Sandia National Laboratories
> Albuquerque, New Mexico, 87185-1318
> 505-284-9268 (Office)
> 505-845-7442 (Fax)
> [email protected]
>
>
> _______________________________________________
> CMake mailing list
> [email protected]
> http://www.cmake.org/mailman/listinfo/cmake
>
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to