Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
kswiecicki committed Aug 29, 2024
1 parent 9d707cb commit 4ebb97e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions source/adapters/level_zero/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,11 @@ if(UR_BUILD_ADAPTER_L0)
target_link_options(ur_adapter_level_zero PRIVATE /DEPENDENTLOADFLAG:0x800)
endif()

# Suppress C4996 warning from level zero loader sources and headers
target_compile_options(ur_adapter_level_zero PRIVATE
$<$<CXX_COMPILER_ID:MSVC>:/WD4996>
)

target_link_libraries(ur_adapter_level_zero PRIVATE
${PROJECT_NAME}::headers
${PROJECT_NAME}::common
Expand Down Expand Up @@ -251,6 +256,11 @@ if(UR_BUILD_ADAPTER_L0_V2)
$<$<CXX_COMPILER_ID:MSVC>:/wd4805 /wd4244>
)

# Suppress C4996 warning from level zero loader sources and headers
target_compile_options(ur_adapter_level_zero PRIVATE
$<$<CXX_COMPILER_ID:MSVC>:/WD4996>
)

set_target_properties(ur_adapter_level_zero_v2 PROPERTIES
VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}"
SOVERSION "${PROJECT_VERSION_MAJOR}"
Expand Down

0 comments on commit 4ebb97e

Please sign in to comment.