From db4e57d19a4dac90dcd192ed13a5cc431fdd177e Mon Sep 17 00:00:00 2001 From: Soji Yamakawa Date: Thu, 5 Dec 2024 13:16:26 -0500 Subject: [PATCH] Removed in-source build rejection. --- src/ysclass/src/CMakeFiles | 8 -------- src/ysgebl/src/gui/CMakeFiles | 8 -------- src/ysgebl/src/kernel/CMakeFiles | 8 -------- src/ysgebl/src/kernelutil/CMakeFiles | 8 -------- src/ysgebl/src/main/CMakeFiles | 8 -------- src/ysport/src/CMakeFiles | 8 -------- 6 files changed, 48 deletions(-) delete mode 100644 src/ysclass/src/CMakeFiles delete mode 100644 src/ysgebl/src/gui/CMakeFiles delete mode 100644 src/ysgebl/src/kernel/CMakeFiles delete mode 100644 src/ysgebl/src/kernelutil/CMakeFiles delete mode 100644 src/ysgebl/src/main/CMakeFiles delete mode 100644 src/ysport/src/CMakeFiles diff --git a/src/ysclass/src/CMakeFiles b/src/ysclass/src/CMakeFiles deleted file mode 100644 index fa775f61..00000000 --- a/src/ysclass/src/CMakeFiles +++ /dev/null @@ -1,8 +0,0 @@ -This file prevents accidental in-source build from this directory. - -What's horrible about cmake is if I accidentally type cmake where CMakeLists.txt exists, cmake happily considers it as an in-source build, and contaminate the directory with the build-related files. There seems to be no way of preventing accidental massive file contamination. Just one mistake is enough. It's as bad as accidental "rm -r *", because a lot of "rm -r something" follows to de-contaminate the source directory. - -However, cmake needs to create a directory called CMakeFiles to set up build-related files. It stops after creating CMakeCache.txt. - -Probably, creating a directory called CMakeCache.txt is also as effective. - diff --git a/src/ysgebl/src/gui/CMakeFiles b/src/ysgebl/src/gui/CMakeFiles deleted file mode 100644 index fa775f61..00000000 --- a/src/ysgebl/src/gui/CMakeFiles +++ /dev/null @@ -1,8 +0,0 @@ -This file prevents accidental in-source build from this directory. - -What's horrible about cmake is if I accidentally type cmake where CMakeLists.txt exists, cmake happily considers it as an in-source build, and contaminate the directory with the build-related files. There seems to be no way of preventing accidental massive file contamination. Just one mistake is enough. It's as bad as accidental "rm -r *", because a lot of "rm -r something" follows to de-contaminate the source directory. - -However, cmake needs to create a directory called CMakeFiles to set up build-related files. It stops after creating CMakeCache.txt. - -Probably, creating a directory called CMakeCache.txt is also as effective. - diff --git a/src/ysgebl/src/kernel/CMakeFiles b/src/ysgebl/src/kernel/CMakeFiles deleted file mode 100644 index fa775f61..00000000 --- a/src/ysgebl/src/kernel/CMakeFiles +++ /dev/null @@ -1,8 +0,0 @@ -This file prevents accidental in-source build from this directory. - -What's horrible about cmake is if I accidentally type cmake where CMakeLists.txt exists, cmake happily considers it as an in-source build, and contaminate the directory with the build-related files. There seems to be no way of preventing accidental massive file contamination. Just one mistake is enough. It's as bad as accidental "rm -r *", because a lot of "rm -r something" follows to de-contaminate the source directory. - -However, cmake needs to create a directory called CMakeFiles to set up build-related files. It stops after creating CMakeCache.txt. - -Probably, creating a directory called CMakeCache.txt is also as effective. - diff --git a/src/ysgebl/src/kernelutil/CMakeFiles b/src/ysgebl/src/kernelutil/CMakeFiles deleted file mode 100644 index fa775f61..00000000 --- a/src/ysgebl/src/kernelutil/CMakeFiles +++ /dev/null @@ -1,8 +0,0 @@ -This file prevents accidental in-source build from this directory. - -What's horrible about cmake is if I accidentally type cmake where CMakeLists.txt exists, cmake happily considers it as an in-source build, and contaminate the directory with the build-related files. There seems to be no way of preventing accidental massive file contamination. Just one mistake is enough. It's as bad as accidental "rm -r *", because a lot of "rm -r something" follows to de-contaminate the source directory. - -However, cmake needs to create a directory called CMakeFiles to set up build-related files. It stops after creating CMakeCache.txt. - -Probably, creating a directory called CMakeCache.txt is also as effective. - diff --git a/src/ysgebl/src/main/CMakeFiles b/src/ysgebl/src/main/CMakeFiles deleted file mode 100644 index fa775f61..00000000 --- a/src/ysgebl/src/main/CMakeFiles +++ /dev/null @@ -1,8 +0,0 @@ -This file prevents accidental in-source build from this directory. - -What's horrible about cmake is if I accidentally type cmake where CMakeLists.txt exists, cmake happily considers it as an in-source build, and contaminate the directory with the build-related files. There seems to be no way of preventing accidental massive file contamination. Just one mistake is enough. It's as bad as accidental "rm -r *", because a lot of "rm -r something" follows to de-contaminate the source directory. - -However, cmake needs to create a directory called CMakeFiles to set up build-related files. It stops after creating CMakeCache.txt. - -Probably, creating a directory called CMakeCache.txt is also as effective. - diff --git a/src/ysport/src/CMakeFiles b/src/ysport/src/CMakeFiles deleted file mode 100644 index fa775f61..00000000 --- a/src/ysport/src/CMakeFiles +++ /dev/null @@ -1,8 +0,0 @@ -This file prevents accidental in-source build from this directory. - -What's horrible about cmake is if I accidentally type cmake where CMakeLists.txt exists, cmake happily considers it as an in-source build, and contaminate the directory with the build-related files. There seems to be no way of preventing accidental massive file contamination. Just one mistake is enough. It's as bad as accidental "rm -r *", because a lot of "rm -r something" follows to de-contaminate the source directory. - -However, cmake needs to create a directory called CMakeFiles to set up build-related files. It stops after creating CMakeCache.txt. - -Probably, creating a directory called CMakeCache.txt is also as effective. -