Skip to content

Commit 2554a89

Browse files
peaksoundjmvalin
authored andcommitted
Fixing Cmake error for OPUS_FIXED_POINT=ON
Only include floating point inner product when OPUS_FIXED_POINT is disabled. Signed-off-by: Jean-Marc Valin <[email protected]>
1 parent eb39efa commit 2554a89

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,9 @@ if(NOT OPUS_DISABLE_INTRINSICS)
507507
if(OPUS_X86_MAY_HAVE_AVX2)
508508
add_sources_group(opus celt ${celt_sources_avx2})
509509
add_sources_group(opus silk ${silk_sources_avx2})
510-
add_sources_group(opus silk ${silk_sources_float_avx2})
510+
if (NOT OPUS_FIXED_POINT)
511+
add_sources_group(opus silk ${silk_sources_float_avx2})
512+
endif()
511513
if (OPUS_DNN)
512514
add_sources_group(opus lpcnet ${dnn_sources_avx2})
513515
endif()
@@ -519,7 +521,9 @@ if(NOT OPUS_DISABLE_INTRINSICS)
519521
endif()
520522
set_source_files_properties(${celt_sources_avx2} PROPERTIES COMPILE_FLAGS ${AVX2_FLAGS})
521523
set_source_files_properties(${silk_sources_avx2} PROPERTIES COMPILE_FLAGS ${AVX2_FLAGS})
522-
set_source_files_properties(${silk_sources_float_avx2} PROPERTIES COMPILE_FLAGS ${AVX2_FLAGS})
524+
if (NOT OPUS_FIXED_POINT)
525+
set_source_files_properties(${silk_sources_float_avx2} PROPERTIES COMPILE_FLAGS ${AVX2_FLAGS})
526+
endif()
523527
set_source_files_properties(${dnn_sources_avx2} PROPERTIES COMPILE_FLAGS ${AVX2_FLAGS})
524528
endif()
525529
if(OPUS_X86_PRESUME_AVX2)

0 commit comments

Comments
 (0)