Fix FMT_OS definition (#3783)

Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
This commit is contained in:
Vladislav Shchapov 2024-01-02 20:20:09 +05:00 committed by GitHub
parent 63ce170853
commit 7fd1802686
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -288,6 +288,7 @@ if (FMT_MODULE)
endif ()
if (FMT_OS)
target_sources(fmt PRIVATE src/os.cc)
else()
target_compile_definitions(fmt PRIVATE FMT_OS=0)
endif ()

View File

@ -113,4 +113,4 @@ module :private;
#include "format.cc"
#if FMT_OS
# include "os.cc"
#endif
#endif