MantisBT - CMake
View Issue Details
0015154CMakeCMakepublic2014-09-12 12:232015-03-02 08:57
Clinton Stimpson 
 
normalminoralways
closedduplicate 
 
 
0015154: Ninja complains about missing rule
With the attached example project, Ninja will complain with an error saying
"ninja: error: 'lib/libmylib.a', needed by 'myapp', missing and no known rule to make it"

I'm using ExternalProject_Add() and then using imported library targets.
I then set the imported target to depend on the ExternalProject to make sure it is up to date.

This works fine with Visual Studio, NMake, Make, Xcode, etc....
See attached project.
No tags attached.
gz test-ninja-external-build.tar.gz (660) 2014-09-12 12:23
https://public.kitware.com/Bug/file/5254/test-ninja-external-build.tar.gz
Issue History
2014-09-12 12:23Clinton StimpsonNew Issue
2014-09-12 12:23Clinton StimpsonFile Added: test-ninja-external-build.tar.gz
2014-09-12 13:13Brad KingNote Added: 0036788
2014-09-12 13:25Clinton StimpsonNote Added: 0036789
2014-09-12 13:26Brad KingStatusnew => resolved
2014-09-12 13:26Brad KingResolutionopen => duplicate
2015-03-02 08:57Robert MaynardNote Added: 0038119
2015-03-02 08:57Robert MaynardStatusresolved => closed

Notes
(0036788)
Brad King   
2014-09-12 13:13   
Is this the same as 0014963?
(0036789)
Clinton Stimpson   
2014-09-12 13:25   
Yes, the attached example project does the same thing as show in this comment:
http://www.cmake.org/Bug/view.php?id=14963#c36130 [^]
(0038119)
Robert Maynard   
2015-03-02 08:57   
Closing resolved issues that have not been updated in more than 4 months.