Hi Kitware guys,
When trying to debug some code I issued the command
cmake --build .
and cmake silently ignored "--build"
It looks like cmake takes the last argument to be the source
directory, no matter what comes before it.
Am I missing something, or is that kinda busted? Seems like it should
tell me to specify a source directory...
Thanks,
--
Dave Abrahams
BoostPro Computing
http://www.boostpro.com
> Hmmmm...
>
> "cmake --build ." is intended to be used from an already-configured build tree.
>
> Did you run it in the source tree?
> Or in a build tree that was not configured yet?
I don't remember, sorry.
> Sounds like we need better error checking of the "cmake --build ." command line...
>
>
> Thanks for the report,
> David Cole
NP
--
David Abrahams
BoostPro Computing
http://boostpro.com
Hi Kitware guys,
When trying to debug some code I issued the command
cmake --build .
and cmake silently ignored "--build"
No, I meant that the error message didn't seem to tell me what was
wrong with my command line (which I thought was missing an argument).
I was obviously confused. I think if there's a real bug it's in
documentation, naming, and error messages.
1. The documentation I can find for --build is at best quite sparse.
Since I was starting with someone else's code, it wasn't there because
I knew I needed it and added it myself; it was already present.
Trying to figure out what it did was difficult for me in part because
of...
2. The term "Project binary directory" used in those docs does not
sound to me like it means what it is, so I misinterpreted what was
supposed to come next. For me, the term "(configured) CMake build
directory" would be better.
3. cmake --help says:
Usage
cmake [options] <path-to-source>
cmake [options] <path-to-existing-build>
Options
...
--build <dir> = Build a CMake-generated project binary tree.
which doesn't make it at all clear that when you use --build <dir>
there's no additional <path-to-xxx> required on the command line
4. "Could not load cache" is a terrible alias for "I looked in the
argument to --build (`.') and it doesn't appear to be a configured
build directory"