Commit 938172c2 authored by Tom Finegan's avatar Tom Finegan

Correct the aom{dec,enc} output paths in CMake.

They're expected in the root of the config dir and not
in the examples sub dir.

Change-Id: I26e28e5a341f5bf8db4554269db198501172345e
parent 432012f6
......@@ -499,8 +499,14 @@ if (ENABLE_EXAMPLES AND "${CMAKE_GENERATOR}" MATCHES "Makefiles$")
# Users of the configure build expect the example targets to be built in the
# examples sub directory of the configured build directory after running make.
file(MAKE_DIRECTORY "${AOM_CONFIG_DIR}/examples")
set_target_properties(${AOM_EXAMPLE_TARGETS} PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${AOM_CONFIG_DIR}/examples")
foreach (target ${AOM_EXAMPLE_TARGETS})
if (NOT "${target}" MATCHES "aomdec\|aomenc")
set_target_properties(${target} PROPERTIES
RUNTIME_OUTPUT_DIRECTORY
"${AOM_CONFIG_DIR}/examples")
endif ()
endforeach ()
if (ENABLE_TOOLS AND AOM_TOOL_TARGETS)
# The same expectation is true for tool targets.
......
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