From 0560c334fb2fe33b132a72a07f3c70312942d6e2 Mon Sep 17 00:00:00 2001 From: LoveSy Date: Fri, 7 Jun 2024 21:25:07 +0800 Subject: [PATCH] Fix build with `FMT_MODULE=OFF` (#3997) --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 89ed7520..477f333c 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 ()