>From 7a70b6908e353a461b826e43aa899188f29d95d5 Mon Sep 17 00:00:00 2001 From: Nikolaus Waxweiler Date: Sat, 7 Apr 2018 21:59:42 +0100 Subject: [PATCH 10/19] CMakeLists.txt: Update build-elsewhere msg with `cmake` commands. CMake comes with system-agnostic commands for common command line build managment tasks. --- CMakeLists.txt | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0debc9496..d1171e53a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -149,15 +149,13 @@ set(LIBRARY_SOVERSION "6") # Disallow in-source builds if ("${PROJECT_BINARY_DIR}" STREQUAL "${PROJECT_SOURCE_DIR}") message(FATAL_ERROR - " -In-source builds are not permitted! Make a separate folder for" - " building, e.g.," - " - mkdir build; cd build; cmake .." - " -Before that, remove the files created by this failed run with" - " - rm -rf CMakeCache.txt CMakeFiles") + "In-source builds are not permitted! Make a separate folder for" + " building, e.g.,\n" + " cmake -E make_directory build\n" + " cmake -E chdir build cmake ..\n" + "Before that, remove the files created by this failed run with\n" + " cmake -E remove CMakeCache.txt\n" + " cmake -E remove_directory CMakeFiles") endif () -- 2.14.3