Merge "compiler_options.cmake: move AUTOCONF_H to root.cmake. [1/1]" into projects/amlogic-dev
diff --git a/cmake/root.cmake b/cmake/root.cmake
index dd1cc5d..2da55ed 100755
--- a/cmake/root.cmake
+++ b/cmake/root.cmake
@@ -49,6 +49,10 @@
# Do not prefix the output library file.
set(CMAKE_STATIC_LIBRARY_PREFIX "")
+set(CMAKE_C_FLAGS "-imacros${AUTOCONF_H}")
+set(CMAKE_CXX_FLAGS "-imacros${AUTOCONF_H}")
+set(CMAKE_ASM_FLAGS "-imacros${AUTOCONF_H}")
+
if(EXISTS ${ARCH_DIR}/compiler_options.cmake)
include(${ARCH_DIR}/compiler_options.cmake)
endif()