Merge lp:~ralsina/u1db/cmake2 into lp:u1db
| Status: | Merged |
|---|---|
| Approved by: | dobey on 2012-06-29 |
| Approved revision: | 348 |
| Merged at revision: | 335 |
| Proposed branch: | lp:~ralsina/u1db/cmake2 |
| Merge into: | lp:u1db |
| Diff against target: |
232 lines (+120/-62) 6 files modified
CMakeLists.txt (+68/-0) Makefile (+0/-33) cmake/Modules/FindCython.cmake (+29/-0) cmake/Modules/ReplicatePythonSourceTree.cmake (+14/-0) setup.py (+2/-1) src/CMakeLists.txt (+7/-28) |
| To merge this branch: | bzr merge lp:~ralsina/u1db/cmake2 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| dobey (community) | Approve on 2012-06-28 | ||
| Eric Casteleijn (community) | 2012-06-27 | Approve on 2012-06-27 | |
|
Review via email:
|
|||
Commit Message
Get rid of the top Makefile, go all cmake, fix deps.
Description of the Change
Get rid of the top Makefile, go all cmake, fix deps. No install target yet.
To test:
mkdir build && cd build && cmake .. && make check
| Roberto Alsina (ralsina) wrote : | # |
> since make check does nothing, tarmac will fail this, so I think the make
> target will have to happen on this branch, or we need to make changes to
> tarmac.
What do you mean "make check does nothing"?
Make check runs the tests :-)
| Eric Casteleijn (thisfred) wrote : | # |
I meant in the same place that tarmac looks. If the goal is to change tarmac to run the tests differently, then it's ok by me. (I still want Rodney's approval before marking approved though)
| dobey (dobey) wrote : | # |
If doing "cmake . && make check" instead of doing cmake .. in a subdir, the build fails unable to find u1db/u1db.h.
| Roberto Alsina (ralsina) wrote : | # |
> If doing "cmake . && make check" instead of doing cmake .. in a subdir, the
> build fails unable to find u1db/u1db.h.
Now it should work from anywhere.
| dobey (dobey) wrote : | # |
Well it works from a subdir and from not now it seems, though there's no way to "clean" the tree automatically and get rid of the extra cmake stuff.
| Roberto Alsina (ralsina) wrote : | # |
> Well it works from a subdir and from not now it seems, though there's no way
> to "clean" the tree automatically and get rid of the extra cmake stuff.
The "right" way to use cmake is not to build inside the sources. In that case, "distclean" is just "rm -rf *"
| Ubuntu One Auto Pilot (otto-pilot) wrote : | # |
The attempt to merge lp:~ralsina/u1db/cmake2 into lp:u1db failed. Below is the output from the failed tests.
make: *** No rule to make target `check-valgrind'. Stop.
| Ubuntu One Auto Pilot (otto-pilot) wrote : | # |
The attempt to merge lp:~ralsina/u1db/cmake2 into lp:u1db failed. Below is the output from the failed tests.
cmake version 2.8.8
Usage
cmake [options] <path-to-source>
cmake [options] <path-to-
Options
-C <initial-cache> = Pre-load a script to populate the cache.
-D <var>:<
-U <globbing_expr> = Remove matching entries from CMake cache.
-G <generator-name> = Specify a makefile generator.
-Wno-dev = Suppress developer warnings.
-Wdev = Enable developer warnings.
-E = CMake command mode.
-i = Run in wizard mode.
-L[A][H] = List non-advanced cached variables.
--build <dir> = Build a CMake-generated project binary tree.
-N = View mode only.
-P <file> = Process script mode.
--find-package = Run in pkg-config like mode.
--graphviz=[file] = Generate graphviz of dependencies.
--system-
--debug-
--debug-output = Put cmake in a debug mode.
--trace = Put cmake in trace mode.
--warn-
--warn-
--no-
--check-
--help-command cmd [file] = Print help for a single command and exit.
--help-
--help-commands [file] = Print help for all commands and exit.
--help-
--help-module module [file] = Print help for a single module and exit.
--help-
--help-modules [file] = Print help for all modules and exit.
--help-
--help-policy cmp [file] = Print help for a single policy and exit.
--help-policies [file] = Print help for all policies and exit.
--help-property prop [file] = Print help for a single property and exit.
--help-
--help-properties [file] = Print help for all properties and exit.
--help-variable var [file] = Print help for a single variable and exit.
--help-
--help-variables [file] = Print help for all variables and exit.
--copyright [file] = Print the CMake copyright and exit.
--help,
--help-full [file] = Print full help and exit.
--help-html [file] = Print full help in HTML format.
--help-man [file] = Print full help as a UNIX man pa...

since make check does nothing, tarmac will fail this, so I think the make target will have to happen on this branch, or we need to make changes to tarmac.