Skip to content

Commit

Permalink
try it this way?
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanHenson committed Jan 22, 2024
1 parent 08092b5 commit 86128bc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmake/AwsSIMD.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -86,34 +86,34 @@ endfunction(simd_add_source_avx)
function(simd_append_source_avx512 target)
foreach(file ${ARGN})
target_sources(${target} PRIVATE ${file})
set_property(SOURCE ${file} APPEND PROPERTY COMPILE_OPTIONS "${AWS_AVX512_FLAG}")
set_property(SOURCE ${file} APPEND PROPERTY COMPILE_OPTIONS ${AWS_AVX512_FLAG})
endforeach()
endfunction(simd_append_source_avx512)

function(simd_append_source_avx2 target)
foreach(file ${ARGN})
target_sources(${target} PRIVATE ${file})
set_property(SOURCE ${file} APPEND PROPERTY COMPILE_OPTIONS "${AWS_AVX2_FLAG}")
set_property(SOURCE ${file} APPEND PROPERTY COMPILE_OPTIONS ${AWS_AVX2_FLAG})
endforeach()
endfunction(simd_append_source_avx2)

function(simd_append_source_avx512vl target)
foreach(file ${ARGN})
target_sources(${target} PRIVATE ${file})
set_property(SOURCE ${file} APPEND PROPERTY COMPILE_OPTIONS "${AWS_AVX512vl_FLAG}")
set_property(SOURCE ${file} APPEND PROPERTY COMPILE_OPTIONS ${AWS_AVX512vl_FLAG})
endforeach()
endfunction(simd_append_source_avx512vl)

function(simd_append_source_pcmul target)
foreach(file ${ARGN})
target_sources(${target} PRIVATE ${file})
set_property(SOURCE ${file} APPEND PROPERTY COMPILE_OPTIONS "${AWS_PCMUL_FLAG}")
set_property(SOURCE ${file} APPEND PROPERTY COMPILE_OPTIONS ${AWS_PCMUL_FLAG})
endforeach()
endfunction(simd_append_source_pcmul)

function(simd_append_source_sse42 target)
foreach(file ${ARGN})
target_sources(${target} PRIVATE ${file})
set_property(SOURCE ${file} APPEND PROPERTY COMPILE_OPTIONS "${AWS_SSE4_2_FLAG}")
set_property(SOURCE ${file} APPEND PROPERTY COMPILE_OPTIONS ${AWS_SSE4_2_FLAG})
endforeach()
endfunction(simd_append_source_sse42)

0 comments on commit 86128bc

Please sign in to comment.