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")
```
MESSAGE(STATUS "Setting up library")
+#
+# This happens surprisingly often:
+#
+IF("${DEAL_II_PACKAGE_NAME}" STREQUAL "")
+ MESSAGE(FATAL_ERROR
+ "\nWrong source directory specified.\n"
+ "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:\n"
+ " $ cmake [...options...] /..\n"
+ "(path not ending in \".../source\")"
+ )
+ENDIF()
+
#
# Compile the deal.II library
#
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