shithub: freetype+ttf2subf

Download patch

ref: 22479ca825804c66168beba6f685f67508da4a60
parent: 802f6a9abd30c5e021ae4491d6572182303b2cf6
author: Werner Lemberg <[email protected]>
date: Sun Jun 28 06:26:33 EDT 2015

* CMakeLists.txt: Disallow in-source builds.

git/fs: mount .git/fs: mount/attach disallowed
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -92,7 +92,24 @@
   endif ()
 endif ()
 
+
 project(freetype)
+
+
+# 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")
+endif ()
+
 
 if (BUILD_FRAMEWORK)
   if (NOT "${CMAKE_GENERATOR}" STREQUAL "Xcode")
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2015-06-28  Werner Lemberg  <[email protected]>
+
+	* CMakeLists.txt: Disallow in-source builds.
+
 2015-06-27  Werner Lemberg  <[email protected]>
 
 	* src/tools/docmaker/utils.py (check_output): Add missing `\n'.