Remove unnecessary module support check
This commit is contained in:
parent
75f3b1c094
commit
4b5ae0b0ef
@ -157,14 +157,6 @@ option(FMT_OS "Include core requiring OS (Windows/Posix) " ON)
|
|||||||
option(FMT_MODULE "Build a module instead of a traditional library." OFF)
|
option(FMT_MODULE "Build a module instead of a traditional library." OFF)
|
||||||
option(FMT_SYSTEM_HEADERS "Expose headers with marking them as system." OFF)
|
option(FMT_SYSTEM_HEADERS "Expose headers with marking them as system." OFF)
|
||||||
|
|
||||||
set(FMT_CAN_MODULE OFF)
|
|
||||||
if (CMAKE_CXX_STANDARD GREATER 17 AND NOT MSVC)
|
|
||||||
set(FMT_CAN_MODULE ON)
|
|
||||||
endif ()
|
|
||||||
if (NOT FMT_CAN_MODULE)
|
|
||||||
set(FMT_MODULE OFF)
|
|
||||||
message(STATUS "Module support is disabled.")
|
|
||||||
endif ()
|
|
||||||
if (FMT_TEST AND FMT_MODULE)
|
if (FMT_TEST AND FMT_MODULE)
|
||||||
# The tests require {fmt} to be compiled as traditional library
|
# The tests require {fmt} to be compiled as traditional library
|
||||||
message(STATUS "Testing is incompatible with build mode 'module'.")
|
message(STATUS "Testing is incompatible with build mode 'module'.")
|
||||||
|
Loading…
Reference in New Issue
Block a user