[CMake] Strange behaviour of CMake

Xavier Delannoy xavier.delannoy at netasq.com
Wed Mar 22 05:54:03 EST 2006


hi all, 

I have two library, lib2 depends of lib1. Each lib are static and shared. 
if I execute CMake in lib1 directory then in lib2. The project build correctly, whereas if I execute CMake in the root directory of my project, I obtain this error : "No rule to make target tmp/libn1.a needed by tmp/libn2.dylib" 

I have this issue under FreeBSD, Linux, MacOS X (I have not yet tested with Win32)

in attach you'll find an example of the problem.

the script build.sh execute CMake in the root directory of the project, then build the project.

the script build2.sh execute CMake in each library directory then build the project.

Do I mistake ? or is this a bug ?

best regards, 

-- 
Xavier Delannoy

R&D engineer
xavier.delannoy at netasq.com
http://www.netasq.com
Tél : +33 320 619 742
Fax : +33 320 619 639

-----------------------------------------------------------------------
This communication may contain information that is proprietary, 
privileged or confidential or otherwise legally exempt from disclosure.
The information contained in this e-mail is intended solely for the
addressee. Access to this e-mail by anyone else or any unauthorized
review, use, disclosure or distribution is unauthorized and prohibited.
If you are not the named addressee indicated in this message (or
responsible for delivery of the message to such person), you are not
authorized to read, print, retain, copy or disseminate this message
or any part of it. If you have received this message in error, please
notify the sender immediately by fax or e-mail and delete and destroy
all copies of the message. If you are the intended recipient but do not
wish to receive communications through this medium, please advise the
sender immediately. The views expressed in this e-mail are not 
necessarily the views of NetASQ. The company, its directors, officers
or employees make no representation or accept any liability for its
accuracy or completeness unless expressly stated to the contrary.
------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Tests.tgz
Type: application/octet-stream
Size: 1696 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20060322/bfe787b8/Tests.obj


More information about the CMake mailing list