mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
35 lines
1.5 KiB
Diff
35 lines
1.5 KiB
Diff
the generator expressions get placed into the generated .pc file otherwise (non
|
|
x86/ppc)
|
|
diff --git a/cmake/Modules/CompilerConfig.cmake b/cmake/Modules/CompilerConfig.cmake
|
|
index 41c56da..0535724 100644
|
|
--- a/cmake/Modules/CompilerConfig.cmake
|
|
+++ b/cmake/Modules/CompilerConfig.cmake
|
|
@@ -162,8 +162,7 @@ else()
|
|
check_c_compiler_flag("-fopenmp-simd" C_COMPILER_SUPPORTS_OPENMP_SIMD)
|
|
check_cxx_compiler_flag("-fopenmp-simd" CXX_COMPILER_SUPPORTS_OPENMP_SIMD)
|
|
set(ARCH_SIMD_FLAGS
|
|
- -DSIMDE_ENABLE_OPENMP "$<$<AND:$<COMPILE_LANGUAGE:C>,$<BOOL:C_COMPILER_SUPPORTS_OPENMP_SIMD>>:-fopenmp-simd>"
|
|
- "$<$<AND:$<COMPILE_LANGUAGE:CXX>,$<BOOL:CXX_COMPILER_SUPPORTS_OPENMP_SIMD>>:-fopenmp-simd>")
|
|
+ -DSIMDE_ENABLE_OPENMP -fopenmp-simd)
|
|
endif()
|
|
endif()
|
|
|
|
diff --git a/cmake/external/ObsPluginHelpers.cmake b/cmake/external/ObsPluginHelpers.cmake
|
|
index 811c4aa..479520f 100644
|
|
--- a/cmake/external/ObsPluginHelpers.cmake
|
|
+++ b/cmake/external/ObsPluginHelpers.cmake
|
|
@@ -244,9 +244,10 @@ elseif(_HOST_ARCH MATCHES "arm64|arm64e|aarch64")
|
|
check_cxx_compiler_flag("-fopenmp-simd" CXX_COMPILER_SUPPORTS_OPENMP_SIMD)
|
|
target_compile_options(
|
|
${CMAKE_PROJECT_NAME}
|
|
- PRIVATE -DSIMDE_ENABLE_OPENMP
|
|
- "$<$<AND:$<COMPILE_LANGUAGE:C>,$<BOOL:C_COMPILER_SUPPORTS_OPENMP_SIMD>>:-fopenmp-simd>"
|
|
- "$<$<AND:$<COMPILE_LANGUAGE:CXX>,$<BOOL:CXX_COMPILER_SUPPORTS_OPENMP_SIMD>>:-fopenmp-simd>")
|
|
+ PRIVATE
|
|
+ -DSIMDE_ENABLE_OPENMP
|
|
+ -fopenmp-simd
|
|
+ )
|
|
endif()
|
|
endif()
|
|
|