Skip to content

Commit 1b0770f

Browse files
committed
Add Build Flag to Enable Integrity Check of DLLs
- Added build flag L0_DLL_INTEGRITY_CHECKS to enable integrity check of DLLs - To enable the integrity check of DLLs, set the L0_DLL_INTEGRITY_CHECKS flag to ON Signed-off-by: Neil R. Spruit <neil.r.spruit@intel.com>
1 parent 89a5683 commit 1b0770f

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

source/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ else()
2929
)
3030
endif()
3131

32-
if(MSVC)
32+
if(MSVC AND L0_DLL_INTEGRITY_CHECKS)
3333
set_target_properties(ze_loader PROPERTIES LINK_FLAGS "${CMAKE_CXX_LINKER_WRAPPER_FLAG}/INTEGRITYCHECK")
3434
endif()
3535

source/layers/tracing/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ if(BUILD_INSTALLER)
5656
set(LIB_COMPONENT_STRING "Loader")
5757
endif()
5858

59-
if(MSVC)
59+
if(MSVC AND L0_DLL_INTEGRITY_CHECKS)
6060
set_target_properties(ze_tracing_layer PROPERTIES LINK_FLAGS "${CMAKE_CXX_LINKER_WRAPPER_FLAG}/INTEGRITYCHECK")
6161
endif()
6262

source/layers/validation/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ if(BUILD_INSTALLER)
4747
set(LIB_COMPONENT_STRING "Loader")
4848
endif()
4949

50-
if(MSVC)
50+
if(MSVC AND L0_DLL_INTEGRITY_CHECKS)
5151
set_target_properties(ze_validation_layer PROPERTIES LINK_FLAGS "${CMAKE_CXX_LINKER_WRAPPER_FLAG}/INTEGRITYCHECK")
5252
endif()
5353

0 commit comments

Comments
 (0)