fixed for clang support

This commit is contained in:
Vladislav Alpatov
2025-03-01 21:22:44 +03:00
parent 3ac9bc555c
commit f677eaa08d
2 changed files with 5 additions and 2 deletions

View File

@@ -24,6 +24,9 @@ set_target_properties(omath PROPERTIES
CXX_STANDARD 23
CXX_STANDARD_REQUIRED ON)
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
target_compile_options(omath PRIVATE -mavx2 -mfma)
endif()
target_compile_features(omath PUBLIC cxx_std_23)