Disallow combining CONFIG_ANS and CONFIG_DAALA_EC in the cmake build.
- Report error and kill generation. The two features collide.
BUG=https://bugs.chromium.org/p/aomedia/issues/detail?id=76
Change-Id: I5df034befb4e2db076a6882444160e1fd6529c98
diff --git a/build/cmake/aom_configure.cmake b/build/cmake/aom_configure.cmake
index 854b0f9..6feb37d 100644
--- a/build/cmake/aom_configure.cmake
+++ b/build/cmake/aom_configure.cmake
@@ -141,6 +141,11 @@
aom_check_source_compiles("pthread_check" "#include <pthread.h>" HAVE_PTHREAD_H)
aom_check_source_compiles("unistd_check" "#include <unistd.h>" HAVE_UNISTD_H)
+if (CONFIG_ANS AND CONFIG_DAALA_EC)
+ message(FATAL_ERROR
+ "CONFIG_ANS and CONFIG_DAALA_EC cannot be enabled together.")
+endif ()
+
# TODO(tomfinegan): consume trailing whitespace after configure_file() when
# target platform check produces empty INLINE and RESTRICT values (aka empty
# values require special casing).