Support for Ninja broken in CMake 2.8.9
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cmake (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
So running "cmake ." just works, i.e. the compiler is found correctly.
However when switching to Ninja instead of make, the compiler cannot be found.
See attached script output.
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: cmake 2.8.9-0ubuntu1
ProcVersionSign
Uname: Linux 3.5.0-22-generic x86_64
NonfreeKernelMo
ApportVersion: 2.6.1-0ubuntu10
Architecture: amd64
Date: Tue Jan 29 10:35:03 2013
EcryptfsInUse: Yes
InstallationDate: Installed on 2012-07-27 (185 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
MarkForUpload: True
SourcePackage: cmake
UpgradeStatus: Upgraded to quantal on 2012-10-20 (100 days ago)
I figured out the problem.
There are 2 packages providing a ninja binary.
ninja - Privilege escalation detection system for GNU/Linux
ninja-build - small build system closest in spirit to Make
The priviledge escape detection system binary is located in /usr/sbin/ninja
while the build ninja is found in /usr/bin/ninja which has less priority in the PATH variable.
Uninstalling the Privilege escalation detection system helps.
After the uninstallation, and using a clean repository cmake works fine with ninja (the builder).
So there is a conflict when having installed both packages at the same time.