Modules installed in CMAKE_ROOT
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cmake-extras (Ubuntu) |
Fix Released
|
High
|
Pete Woods |
Bug Description
Every time cmake is upgraded, we need to rebuild cmake-extras to put the modules in the correct place, even though it's just about the paths.
I believe the installation in CMAKE_ROOT is wrong (only cmake-data installs there), we should instead install in /usr/lib/cmake/ (or /usr/lib/
Otherwise, we'd need versioned dependencies to prevent broken cmake + cmake-extras installations.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: cmake-extras 0.6+16.
ProcVersionSign
Uname: Linux 4.4.0-15-generic x86_64
ApportVersion: 2.20-0ubuntu3
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Mar 29 23:42:12 2016
Dependencies:
PackageArchitec
SourcePackage: cmake-extras
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
- Gary.Wang: Approve
- Michi Henning (community): Approve
-
Diff: 25 lines (+2/-2)2 files modifiedCMakeLists.txt (+1/-1)
debian/control.in (+1/-1)
- Michi Henning (community): Approve
-
Diff: 39 lines (+3/-4)3 files modifiedCMakeLists.txt (+1/-1)
debian/control (+1/-1)
src/client/qml-plugin/CMakeLists.txt (+1/-2)
- Michi Henning (community): Approve
- unity-api-1-bot: Needs Fixing (continuous-integration)
-
Diff: 25 lines (+2/-2)2 files modifiedCMakeLists.txt (+1/-1)
debian/control (+1/-1)
- Michi Henning (community): Approve
- unity-api-1-bot: Needs Fixing (continuous-integration)
-
Diff: 25 lines (+2/-2)2 files modifiedCMakeLists.txt (+1/-1)
debian/control.in (+1/-1)
- dobey (community): Approve
- unity-api-1-bot: Pending (continuous-integration) requested
- Michi Henning: Pending requested
-
Diff: 82 lines (+3/-45)3 files modifiedCMakeLists.txt (+2/-2)
cmake/UseGSettings.cmake (+0/-42)
debian/control (+1/-1)
- Michi Henning (community): Approve
- Unity8 CI Bot: Needs Fixing (continuous-integration)
-
Diff: 12 lines (+1/-1)1 file modifieddebian/control (+1/-1)
- Unity8 CI Bot (community): Approve (continuous-integration)
- Michi Henning (community): Approve
-
Diff: 25 lines (+2/-2)2 files modifiedCMakeLists.txt (+1/-1)
debian/control (+1/-1)
- Michi Henning (community): Approve
- unity-api-1-bot: Needs Fixing (continuous-integration)
-
Diff: 34 lines (+3/-3)2 files modifiedCMakeLists.txt (+2/-2)
debian/control (+1/-1)
- dobey (community): Approve
- Michi Henning (community): Approve
- unity-api-1-bot: Needs Fixing (continuous-integration)
-
Diff: 51 lines (+4/-8)3 files modifiedCMakeLists.txt (+1/-1)
debian/control (+1/-1)
tests/CMakeLists.txt (+2/-6)
- Indicator Applet Developers: Pending requested
-
Diff: 292 lines (+69/-129)8 files modifiedCMakeLists.txt (+61/-2)
cmake/Coverage.cmake (+0/-37)
cmake/FindValgrind.cmake (+0/-40)
cmake/UseGSettings.cmake (+0/-42)
debian/control (+1/-1)
debian/rules (+1/-3)
tests/CMakeLists.txt (+2/-4)
tests/integration/TestHud.cpp (+4/-0)
- dobey (community): Approve
-
Diff: 53 lines (+5/-6)4 files modifiedCMakeLists.txt (+2/-2)
debian/control (+1/-1)
doc/qt/cpp/CMakeLists.txt (+1/-1)
src/connectivity-api/connectivity-qml/CMakeLists.txt (+1/-2)
- unity-api-1-bot: Needs Fixing (continuous-integration)
- Indicator Applet Developers: Pending requested
-
Diff: 43 lines (+4/-4)3 files modifieddata/CMakeLists.txt (+1/-1)
debian/control (+1/-1)
tests/integration/CMakeLists.txt (+2/-2)
- Michi Henning (community): Approve
-
Diff: 85 lines (+4/-47)4 files modifiedCMakeLists.txt (+2/-3)
cmake/UseGSettings.cmake (+0/-42)
debian/control (+1/-1)
doc/libthumbnailer-qt/CMakeLists.txt (+1/-1)
- unity-api-1-bot: Approve (continuous-integration)
- Ted Gould (community): Approve
-
Diff: 25 lines (+2/-2)2 files modifiedCMakeLists.txt (+1/-1)
debian/control (+1/-1)
- Unity Team: Pending requested
-
Diff: 173 lines (+15/-99)6 files modifiedCMakeLists.txt (+13/-1)
cmake/COPYING-CMAKE-SCRIPTS (+0/-22)
cmake/Coverage.cmake (+0/-37)
cmake/FindValgrind.cmake (+0/-35)
debian/control (+1/-1)
tests/CMakeLists.txt (+1/-3)
- Unity Team: Pending requested
-
Diff: 201 lines (+17/-112)6 files modifiedCMakeLists.txt (+14/-13)
cmake/COPYING-CMAKE-SCRIPTS (+0/-22)
cmake/Coverage.cmake (+0/-37)
cmake/FindValgrind.cmake (+0/-35)
debian/control (+1/-1)
tests/CMakeLists.txt (+2/-4)
- Michi Henning (community): Approve
- unity-api-1-bot: Needs Fixing (continuous-integration)
-
Diff: 25 lines (+2/-2)2 files modifiedCMakeLists.txt (+1/-1)
debian/control.in (+1/-1)
- Michi Henning (community): Approve
-
Diff: 35 lines (+3/-4)2 files modifiedCMakeLists.txt (+2/-3)
debian/control (+1/-1)
- Michi Henning (community): Disapprove
-
Diff: 25 lines (+2/-2)2 files modifiedCMakeLists.txt (+1/-1)
debian/control.in (+1/-1)
- Charles Kerr (community): Approve
-
Diff: 96 lines (+11/-27)9 files modifiedCMakeLists.txt (+0/-8)
debian/changelog (+8/-0)
debian/control (+1/-2)
debian/rules (+2/-7)
modules/EnableCoverageReport.cmake (+0/-2)
modules/FormatCode.cmake (+0/-2)
modules/QmlPlugins.cmake (+0/-2)
modules/UseDoxygen.cmake (+0/-2)
modules/UseGSettings.cmake (+0/-2)
Changed in cmake-extras (Ubuntu): | |
importance: | Undecided → High |
assignee: | nobody → Pete Woods (pete-woods) |
status: | New → In Progress |
Changed in cmake-extras (Ubuntu): | |
status: | In Progress → Fix Released |
We can install in /usr/lib/ cmake/cmake- extras, but that is not backward compatible.
cmake looks in CMAKE_MODULE_PATH for additional modules but, by default, CMAKE_MODULE_PATH is empty, so the extra modules are not found. The only place cmake looks at by default appears to be ${CMAKE_ ROOT}/Modules, unfortunately.
We can make this change, but all projects using cmake-extras will have to set CMAKE_MODULE_PATH explicitly:
set(CMAKE_ MODULE_ PATH /usr/lib/ cmake/cmake- extras)