Add MSVC support for OpenMP in CMakeLists

This commit is contained in:
Sheldon Robinson
2026-01-22 13:18:17 -05:00
committed by GitHub
parent 39c9781711
commit c3ca17041b
+1 -1
View File
@@ -180,7 +180,7 @@ endif()
#
if(KISSFFT_OPENMP)
if(CMAKE_C_COMPILER_ID MATCHES "GNU|Clang|AppleClang")
if(CMAKE_C_COMPILER_ID MATCHES "GNU|Clang|AppleClang|MSVC")
if (NOT MSVC)
target_compile_options(kissfft PRIVATE -fopenmp)
if(${CMAKE_VERSION} VERSION_LESS "3.13.0")