update to make sure the source directory and build directory are different
This commit is contained in:
parent
6dae7eb4a5
commit
4cc8240c5a
@ -1,6 +1,13 @@
|
|||||||
# Note: CMake support is community-based. The maintainers do not use CMake
|
# Note: CMake support is community-based. The maintainers do not use CMake
|
||||||
# internally.
|
# internally.
|
||||||
|
|
||||||
|
if(" ${CMAKE_SOURCE_DIR}" STREQUAL " ${CMAKE_BINARY_DIR}")
|
||||||
|
message(FATAL_ERROR "
|
||||||
|
FATAL: In-source builds are not allowed.
|
||||||
|
You should create a separate directory for build files.
|
||||||
|
")
|
||||||
|
endif()
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.13)
|
cmake_minimum_required(VERSION 3.13)
|
||||||
|
|
||||||
project(googletest-distribution)
|
project(googletest-distribution)
|
||||||
|
Loading…
Reference in New Issue
Block a user