mirror of
https://github.com/fmtlib/fmt.git
synced 2024-10-04 13:59:43 +00:00
Reverting check to make shorter branch comes first
This commit is contained in:
parent
94f96d112d
commit
5c445bc42c
@ -62,7 +62,9 @@ function(add_module_library name)
|
|||||||
target_compile_options(${name} PUBLIC -fmodules-ts)
|
target_compile_options(${name} PUBLIC -fmodules-ts)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if (CMAKE_VERSION VERSION_LESS 3.28 OR NOT(CMAKE_GENERATOR STREQUAL "Ninja"))
|
if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.28 AND CMAKE_GENERATOR STREQUAL "Ninja")
|
||||||
|
target_sources(${name} PUBLIC FILE_SET CXX_MODULES FILES ${sources})
|
||||||
|
else()
|
||||||
# `std` is affected by CMake options and may be higher than C++20.
|
# `std` is affected by CMake options and may be higher than C++20.
|
||||||
get_target_property(std ${name} CXX_STANDARD)
|
get_target_property(std ${name} CXX_STANDARD)
|
||||||
|
|
||||||
@ -105,8 +107,6 @@ function(add_module_library name)
|
|||||||
endforeach ()
|
endforeach ()
|
||||||
endif ()
|
endif ()
|
||||||
target_sources(${name} PRIVATE ${sources})
|
target_sources(${name} PRIVATE ${sources})
|
||||||
else()
|
|
||||||
target_sources(${name} PUBLIC FILE_SET CXX_MODULES FILES ${sources})
|
|
||||||
endif()
|
endif()
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user