Fix build with FMT_MODULE=OFF (#3997)

This commit is contained in:
LoveSy 2024-06-07 21:25:07 +08:00 committed by GitHub
parent db9365a11b
commit 0560c334fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 ()