[CMake] Cannot find "modules" directory on MacOS

Ryan Pavlik rpavlik at iastate.edu
Thu Aug 5 15:18:38 EDT 2010


How are you running cmake?  I've used the installer from the web site on my
mac, and it works fine both from the GUI and the command line, and I did not
have to move/link the modules.  Is it possible that you have some other
version of cmake installed (from macports, fink, or brew?)?  Try removing
it, if that is the case, and installing anew from the cmake-provided
binaries.

Ryan

On Thu, Aug 5, 2010 at 2:08 PM, Chris Wolf <cw10025 at gmail.com> wrote:

> 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
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>



-- 
Ryan Pavlik
HCI Graduate Student
Virtual Reality Applications Center
Iowa State University

rpavlik at iastate.edu
http://academic.cleardefinition.com
Internal VRAC/HCI Site: http://tinyurl.com/rpavlik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100805/3e4fa412/attachment.htm>


More information about the CMake mailing list