mirror of
https://github.com/darlinghq/darling.git
synced 2024-11-26 22:00:29 +00:00
15 lines
539 B
CMake
15 lines
539 B
CMake
macro( MACRO_ENSURE_OUT_OF_SOURCE_BUILD )
|
|
string( COMPARE EQUAL "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}" _insource )
|
|
if( _insource )
|
|
message( FATAL_ERROR
|
|
"In-source builds are not allowed.
|
|
CMake would overwrite the Linux kernel module Makefile.
|
|
Please create a directory and run cmake from there, passing the path
|
|
to this source directory as the last argument.
|
|
This process created the file `CMakeCache.txt' and the directory `CMakeFiles'.
|
|
Please delete them."
|
|
)
|
|
endif( _insource )
|
|
endmacro( MACRO_ENSURE_OUT_OF_SOURCE_BUILD )
|
|
|