18 May
2016
18 May
'16
12:31 a.m.
On Tuesday, May 17, 2016 at 7:07:44 PM UTC-5, Peter Dimov wrote:
Paul Fultz II wrote:
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.
cmake takes the directory as an argument, so it would make absolutely no sense for it to search. If you want cmake to look for CMakeLists.txt somewhere, you pass that somewhere to it.
That is true, but considering putting a cmake in another directory is first, quite rare, and also non-conventional. Therefore, it is difficult to decide what directory should be searched, and in what order the search to happen. Its much simpler to just put the cmake file where it is expected to be.