mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-06-30 03:37:38 +00:00
13 lines
438 B
CMake
13 lines
438 B
CMake
function(AssureOutOfSourceBuilds)
|
|
get_filename_component(srcdir "${CMAKE_SOURCE_DIR}" REALPATH)
|
|
get_filename_component(bindir "${CMAKE_BINARY_DIR}" REALPATH)
|
|
|
|
if("${srcdir}" STREQUAL "${bindir}")
|
|
message("Warning: in-source builds are disabled")
|
|
message("Please create a separate build directory and run cmake from there")
|
|
message(FATAL_ERROR "Quitting configuration")
|
|
endif()
|
|
endfunction()
|
|
|
|
assureOutOfSourceBuilds()
|