ruslo / CGold

:whale2: The Hitchhiker’s Guide to the CMake
https://cgold.readthedocs.io
BSD 2-Clause "Simplified" License
523 stars 56 forks source link

Don't use the -H and -B flags for specifiying the source and build directory #21

Closed dueringa closed 7 years ago

dueringa commented 7 years ago

In https://cgold.readthedocs.io/en/latest/tutorials/out-of-source.html (and on other pages), the -H. and -B flags are used.

According to http://stackoverflow.com/a/31092052, this is undocumented because it shouldn't be used. The answer links to https://cmake.org/pipermail/cmake-developers/2016-June/028843.html, it says

These are undocumented because they are internal options that
are not meant for public use.

So I guess the flags shouldn't be used in the tutorial.

ruslo commented 7 years ago

In https://cgold.readthedocs.io/en/latest/tutorials/out-of-source.html

If you follow source tree/binary tree link on this page, you will notice -H section of glossary with explanation and links. In short I've described my opinion already in this message:

dueringa commented 7 years ago

I see, I didn't follow the links to the glossary.

Is there a reason only the -H section in the glossary states that it's in internal option? Maybe the -B section should at least state that it's undocumented, with a link to the -H section for further explanation?

ruslo commented 7 years ago

Maybe the -B section should at least state that it's undocumented, with a link to the -H section for further explanation?

-B has link to -H description. And when -H first used in document it has a link to glossary:

ruslo commented 7 years ago

Closing inactive discussion.