[CMake] Cannot find install_name_tool (Xcode 4.6, CMake 2.8.11)

Jerry Krinock jerry at sheepsystems.com
Fri Jul 5 21:14:46 EDT 2013


I'm running a script, written by others, which invokes the CMake command-line tool to generate an Xcode project.  The last time I did this was about a year ago, and it worked.  But today, with Xcode 4.2 I think it was, and CMake 2.8.11.2, I get this…

CMake Error at /Applications/CMake 2.8-11.app/Contents/share/cmake-2.8/Modules/CMakeFindBinUtils.cmake:67 (message):
  Could not find install_name_tool, please check your installation.
Call Stack (most recent call first):
  /Applications/CMake 2.8-11.app/Contents/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:173 (include)
  CMakeLists.txt:19 (Project)

That second line may be from my third-party script; I'm not sure.

I'm not familiar with the cmake language, but looking at that CMakeFindBinUtils.cmake I'm guessing that this error occurs during some early "sanity check", before CMake processes any sources, where it goes out and checks to make sure that Apple has not moved the tools it's going to need (again!).  So it would seem that anyone using CMake with a recent Xcode would have this problem, but I can't find any mention of it in this year's list archive, so maybe I'm doing something wrong.

The actual location of install_name_tool in Xcode 4.6, which I presume is what CMake is looking for, is…

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool

Should I file a bug?  Could someone suggest a workaround to "help" CMakeFindBinUtils find that?

Thank you,

Jerry Krinock



More information about the CMake mailing list