]> https://gitweb.dealii.org/ - dealii.git/commit
CMake: add a safeguard for accidential /source source directory
authorMatthias Maier <tamiko@43-1.org>
Sun, 3 Jun 2018 20:32:46 +0000 (15:32 -0500)
committerMatthias Maier <tamiko@43-1.org>
Tue, 5 Jun 2018 02:15:16 +0000 (21:15 -0500)
commit000b46a32741c579d37e711ea14c0aa33ae8a37a
treefb40b115a2cc0fbacdb0a2b2b80c0cf977144880
parentd3f287bf6ae48a86bb68e5879c2126f8786672dc
CMake: add a safeguard for accidential /source source directory

This happens remarkably often. Let's improve the error message:
```
  Wrong source directory specified.

  You pointed cmake to the subdirectory "source" instead of the base
  directory.  Make sure that the path in the cmake invocation does not end in
  source.  If you have created a "build" subdirectory, the cmake invocation
  should simply be of the form:

    $ cmake  [...options...]  /..

  (path not ending in ".../source")
```
source/CMakeLists.txt

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.