Push module check to test

This commit is contained in:
Victor Zverovich 2023-04-14 11:42:01 -07:00
parent d8a2698e6c
commit d97d8cea67
2 changed files with 5 additions and 1 deletions

View File

@ -401,7 +401,7 @@ if (FMT_DOC)
add_subdirectory(doc) add_subdirectory(doc)
endif () endif ()
if (FMT_TEST AND NOT FMT_MODULE) if (FMT_TEST)
enable_testing() enable_testing()
add_subdirectory(test) add_subdirectory(test)
endif () endif ()

View File

@ -55,6 +55,10 @@ function(add_fmt_test name)
add_test(NAME ${name} COMMAND ${name}) add_test(NAME ${name} COMMAND ${name})
endfunction() endfunction()
if (FMT_MODULE)
return ()
endif ()
add_fmt_test(args-test) add_fmt_test(args-test)
add_fmt_test(assert-test) add_fmt_test(assert-test)
add_fmt_test(chrono-test) add_fmt_test(chrono-test)