From 143c277d99f2e852af05f69cfd73910eda022d6f Mon Sep 17 00:00:00 2001 From: LoveSy Date: Fri, 7 Jun 2024 19:29:19 +0800 Subject: [PATCH] Fix build with `FMT_MODULE=OFF` --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 89ed7520a58e..477f333c5a72 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -53,6 +53,7 @@ function(add_module_library name) if (NOT ${${AML_IF}}) # Create a non-modular library. target_sources(${name} PRIVATE ${AML_FALLBACK}) + set_target_properties(${name} PROPERTIES CXX_SCAN_FOR_MODULES OFF) return() endif ()