From e6918187568dbd01842d8d1d2c808ce16a894239 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 21 Apr 2024 13:54:28 +0200 Subject: Adding upstream version 18.2.2. Signed-off-by: Daniel Baumann --- src/utf8proc/utils.cmake | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/utf8proc/utils.cmake (limited to 'src/utf8proc/utils.cmake') diff --git a/src/utf8proc/utils.cmake b/src/utf8proc/utils.cmake new file mode 100644 index 000000000..63fc426a3 --- /dev/null +++ b/src/utf8proc/utils.cmake @@ -0,0 +1,20 @@ + +function (disallow_intree_builds) + # Adapted from LLVM's toplevel CMakeLists.txt file + if( CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR AND NOT MSVC_IDE ) + message(FATAL_ERROR " + In-source builds are not allowed. CMake would overwrite the + makefiles distributed with utf8proc. Please create a directory + and run cmake from there. Building in a subdirectory is + fine, e.g.: + + mkdir build + cd build + cmake .. + + This process created the file `CMakeCache.txt' and the + directory `CMakeFiles'. Please delete them. + + ") + endif() +endfunction() -- cgit v1.2.3