On Tuesday, May 17, 2016 at 4:31:58 PM UTC-5, Peter Dimov wrote:
Raffi Enficiaud wrote:
Le 17/05/16 à 20:08, Andrey Semashev a écrit :
On Tuesday, 17 May 2016 21:08:01 MSK Paul Fultz II wrote: ...
Something like this:
git clone git@github.com:boostorg/hana.git mkdir build && cd build cmake ../hana/
And why is it a problem to type this instead:
cmake ../hana/build
?
+1
The nice thing on eg. GitHub is that it interprets and shows the README.txt/README.md.
The reason Paul would rather have CMakeLists.txt at the root is because this is where his tool expects to find it, which expectation is correct by convention in the majority of the (non-Boost) cases. Tools obviously don't read README files.
Of course, it's not hard at all for a tool to be made to look for CMakeLists.txt at various predetermined locations such as .;./cmake;./build. In fact, ./cmake would probably be a better place than ./build, because some libraries seem to already use it.
The tool doesn't look for CMakeLists.txt at all. It just calls cmake on the library. If you want it to search in another location, its best to update cmake to do that.