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 "$<$,$>:-fopenmp-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 - "$<$,$>:-fopenmp-simd>" - "$<$,$>:-fopenmp-simd>") + PRIVATE + -DSIMDE_ENABLE_OPENMP + -fopenmp-simd + ) endif() endif()