Commit f77394f1 authored by Tom Finegan's avatar Tom Finegan

Disallow in tree CMake builds.

BUG=https://bugs.chromium.org/p/aomedia/issues/detail?id=76

Change-Id: I4525ba56d4d125e2e7de1c25ed8fcd56ff4cd33b
parent 198d3b87
......@@ -14,6 +14,13 @@ project(AOM C CXX)
set(AOM_ROOT "${CMAKE_CURRENT_SOURCE_DIR}")
set(AOM_CONFIG_DIR "${CMAKE_CURRENT_BINARY_DIR}")
if ("${AOM_ROOT}" STREQUAL "${AOM_CONFIG_DIR}")
message(FATAL_ERROR
"Building from within the aom source tree is not supported.\n"
"Hint: mkdir -p ../aom_build && cd ../aom_build\n"
"Run cmake from there.")
endif ()
include("${AOM_ROOT}/build/cmake/aom_configure.cmake")
include("${AOM_ROOT}/build/cmake/aom_optimization.cmake")
include("${AOM_ROOT}/aom_dsp/aom_dsp.cmake")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment