Skip to content

Commit

Permalink
Fixing Cmake error for OPUS_FIXED_POINT=ON
Browse files Browse the repository at this point in the history
Only include floating point inner product when OPUS_FIXED_POINT is disabled.

Signed-off-by: Jean-Marc Valin <[email protected]>
  • Loading branch information
peaksound authored and jmvalin committed May 24, 2024
1 parent eb39efa commit 2554a89
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,9 @@ if(NOT OPUS_DISABLE_INTRINSICS)
if(OPUS_X86_MAY_HAVE_AVX2)
add_sources_group(opus celt ${celt_sources_avx2})
add_sources_group(opus silk ${silk_sources_avx2})
add_sources_group(opus silk ${silk_sources_float_avx2})
if (NOT OPUS_FIXED_POINT)
add_sources_group(opus silk ${silk_sources_float_avx2})
endif()
if (OPUS_DNN)
add_sources_group(opus lpcnet ${dnn_sources_avx2})
endif()
Expand All @@ -519,7 +521,9 @@ if(NOT OPUS_DISABLE_INTRINSICS)
endif()
set_source_files_properties(${celt_sources_avx2} PROPERTIES COMPILE_FLAGS ${AVX2_FLAGS})
set_source_files_properties(${silk_sources_avx2} PROPERTIES COMPILE_FLAGS ${AVX2_FLAGS})
set_source_files_properties(${silk_sources_float_avx2} PROPERTIES COMPILE_FLAGS ${AVX2_FLAGS})
if (NOT OPUS_FIXED_POINT)
set_source_files_properties(${silk_sources_float_avx2} PROPERTIES COMPILE_FLAGS ${AVX2_FLAGS})
endif()
set_source_files_properties(${dnn_sources_avx2} PROPERTIES COMPILE_FLAGS ${AVX2_FLAGS})
endif()
if(OPUS_X86_PRESUME_AVX2)
Expand Down

0 comments on commit 2554a89

Please sign in to comment.