diff options
Diffstat (limited to 'cmake/modules/RCCPreventInSourceBuild.cmake')
| -rw-r--r-- | cmake/modules/RCCPreventInSourceBuild.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cmake/modules/RCCPreventInSourceBuild.cmake b/cmake/modules/RCCPreventInSourceBuild.cmake new file mode 100644 index 0000000..97b3392 --- /dev/null +++ b/cmake/modules/RCCPreventInSourceBuild.cmake @@ -0,0 +1,8 @@ +# SPDX-License-Identifier: GPL-3.0-or-later + +if(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR) + message( + FATAL_ERROR + "RCC does not support in-source builds. Configure a separate build directory." + ) +endif() |
