[CMake] Cannot find "modules" directory on MacOS

Chris Wolf cw10025 at gmail.com
Thu Aug 5 15:08:49 EDT 2010


I already searched around and found this answer:

http://www.mail-archive.com/cmake@cmake.org/msg04790.html

...however, there is NO such directory, " /usr/share/cmake*" on my system.
(nor "/usr/local/share/cmake*")

I tried to investigate:

$ cd /Library/Receipts/cmake-2.8.2-Darwin-universal.pkg/Contents
$ lsbom -s Archive.bom | grep -i module
./CMake 2.8-2.app/Contents/share/cmake-2.8/Modules/AddFileDependencies.cmake
./CMake 2.8-2.app/Contents/share/cmake-2.8/Modules/BundleUtilities.cmake
./CMake 2.8-2.app/Contents/share/cmake-2.8/Modules/CMake.cmake
./CMake
2.8-2.app/Contents/share/cmake-2.8/Modules/CMakeASM-ATTInformation.cmake
./CMake 2.8-2.app/Contents/share/cmake-2.8/Modules/CMakeASMCompiler.cmake.in
./CMake 2.8-2.app/Contents/share/cmake-2.8/Modules/CMakeASMInformation.cmake
[...]

So obviously, they're in the package and the installer was supposed to
have put the modules on the system, either in
/usr/share or /usr/local/share  but they're not there.

Then I tried looking in the Application bundle:

$ cd /Applications/CMake 2.8-2.app/Contents
$ ls -l
drwxr-xr-x  8 cwolf  cwolf   272 Aug  5 14:52 bin
drwxr-xr-x  3 cwolf  cwolf   102 Jun 28 11:12 doc
drwxr-xr-x  3 cwolf  cwolf   102 Jun 28 11:13 man
drwxr-xr-x  6 cwolf  cwolf   204 Jun 28 11:12 share
[...]

...so that's where they are.  When I ran the installer, I elected to 
let it create symlinks in /usr/local, but it only did that for the 
binaries in "bin".  

The "postflight" script should have also symlinked, or copied,
the "doc", "man" and "share" directory hierarchies content also.

I can do this manually myself, but I just wanted to point out the 
issue with the MacOS installer package for cmake-2.8.2.

Thanks,

Chris Wolf



More information about the CMake mailing list