Commit 4f8047d24e for aom
commit 4f8047d24e88ac7dfa82efb53105d62349eb0b31
Author: Jerome Jiang <jianj@google.com>
Date: Wed Jun 17 13:14:53 2026 -0400
Fix Ninja build failure with CONFIG_HIGHWAY=1
Explicitly set LINKER_LANGUAGE to CXX for the aom_hwy target.
This target only contains header files since Highway is header-only
when HWY_HEADER_ONLY is defined. The Ninja generator requires
an explicit linker language when there are no source files.
Bug: 524319756
Change-Id: I5dc40a4b0ea0cb08da563682c8501fdef514e12c
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2bccc365eb..e4a26d0ac3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -305,6 +305,7 @@ if(CONFIG_HIGHWAY)
"${AOM_ROOT}/third_party/highway/hwy/contrib/math/math-inl.h")
add_definitions(-DHWY_HEADER_ONLY)
add_library(aom_hwy OBJECT ${AOM_HIGHWAY_SOURCES})
+ set_target_properties(aom_hwy PROPERTIES LINKER_LANGUAGE CXX)
set(AOM_LIB_TARGETS ${AOM_LIB_TARGETS} aom_hwy)
endif()