[CMake] cmake doesnt use /usr/bin/ar with c++ projects
Filipe Sousa
filipe at ipb.pt
Tue Jul 11 18:20:16 EDT 2006
Philipp Meinen wrote:
> Hello
>
> I recently used cmake for a project.
> So I added a line like this to my CMakeLists.txt:
> PROJECT(ProjectName CXX)
>
> Later on, when i tested the build-environment
> i saw error lines like this:
> cd /some/directory && cr libFOO.a "CMakeFiles/FOO.dir/Foo.o"
>
> Now this is the line of the Makefile where
> the archiver should generate an archive of the object files.
> But there is no binary for the archiver specified, only
> the arguments.
> After playing around for some time I found out, that I need
> to write the Project definition like this:
> PROJECT(ProjectName C CXX)
> or
> PROJECT(ProjectName)
>
> It seems that there is no archiver binary defined for
> a "plain c++ project".
> I added a small example project to show the problem.
>
> I hope this report will improve cmake in a way that
> other users dont have to spend hours to find this bug(?).
>
> Regards,
> Philipp
http://thread.gmane.org/gmane.comp.programming.tools.cmake.user/1758/focus=1758
--
Filipe Sousa
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://public.kitware.com/pipermail/cmake/attachments/20060711/9170ffd1/signature.pgp
More information about the CMake
mailing list