Move local ids generation code to shared directory

Change-Id: I5b0486ceae8d67d0c1d1be56a756c102226d7e2a
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2020-10-07 15:09:42 +02:00
committed by sys_ocldev
parent 83b0932beb
commit 4e3679b8ae
20 changed files with 30 additions and 30 deletions

View File

@@ -52,6 +52,15 @@ function(generate_shared_lib LIB_NAME MOCKABLE)
endif()
create_project_source_tree(${LIB_NAME})
# Enable SSE4/AVX2 options for files that need them
if(MSVC)
set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/helpers/local_id_gen_avx2.cpp PROPERTIES COMPILE_FLAGS /arch:AVX2)
else()
set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/helpers/local_id_gen_avx2.cpp PROPERTIES COMPILE_FLAGS -mavx2)
set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/helpers/local_id_gen_sse4.cpp PROPERTIES COMPILE_FLAGS -msse4.2)
endif()
endfunction()
set(NEO_CORE_COMPILE_DEFS "")