Check if the generator is ninja

This commit is contained in:
LoveSy authored and Victor Zverovich committed 2024-06-05 21:01:42 -07:00
1 parent a9b8517638
commit 6abc1204f3
1 file changed
+1 -1
+1 -1
View File
@@ -62,7 +62,7 @@ function(add_module_library name)
target_compile_options(${name} PUBLIC -fmodules-ts)
endif ()
if (CMAKE_VERSION VERSION_LESS 3.28)
if (CMAKE_VERSION VERSION_LESS 3.28 OR NOT(CMAKE_GENERATOR STREQUAL "Ninja"))
# `std` is affected by CMake options and may be higher than C++20.
get_target_property(std ${name} CXX_STANDARD)