[cmake] prevent in source builds

This commit is contained in:
akallabeth
2023-11-07 15:41:01 +01:00
committed by akallabeth
parent 1b31852d32
commit 615fcc4370
12 changed files with 56 additions and 9 deletions

View File

@@ -25,7 +25,9 @@ set(CMAKE_C_EXTENSIONS ON)
option(CMAKE_COLOR_MAKEFILE "colorful CMake makefile" ON)
option(CMAKE_VERBOSE_MAKEFILE "verbose CMake makefile" ON)
option(CMAKE_POSITION_INDEPENDENT_CODE "build with position independent code (-fPIC or -fPIE)" ON)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../cmake/)
include(PreventInSourceBuilds)
include(MSVCRuntime)