diff options
-rw-r--r-- | gui/CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gui/CMakeLists.txt b/gui/CMakeLists.txt index 6c5c7b92..a86336bb 100644 --- a/gui/CMakeLists.txt +++ b/gui/CMakeLists.txt @@ -1,3 +1,12 @@ +# CMake will throw a cryptic message if an user unwittingly invokes it from +# this directory. +if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR) + message (FATAL_ERROR + "qapitrace must be built from the top source directory.\n" + "Read docs/INSTALL.markdown for detailed build instructions." + ) +endif () + add_definitions (-DQT_FORCE_ASSERTS) if (APPLE) |