Skip to content

Commit

Permalink
Push module check to test
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Apr 14, 2023
1 parent d8a2698 commit d97d8ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ if (FMT_DOC)
add_subdirectory(doc)
endif ()

if (FMT_TEST AND NOT FMT_MODULE)
if (FMT_TEST)
enable_testing()
add_subdirectory(test)
endif ()
Expand Down
4 changes: 4 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ function(add_fmt_test name)
add_test(NAME ${name} COMMAND ${name})
endfunction()

if (FMT_MODULE)
return ()
endif ()

add_fmt_test(args-test)
add_fmt_test(assert-test)
add_fmt_test(chrono-test)
Expand Down

0 comments on commit d97d8ce

Please sign in to comment.