File tree 3 files changed +12
-0
lines changed
3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,10 @@ else()
29
29
)
30
30
endif ()
31
31
32
+ if (MSVC AND L0_DLL_INTEGRITY_CHECKS)
33
+ set_target_properties (ze_loader PROPERTIES LINK_FLAGS "${CMAKE_CXX_LINKER_WRAPPER_FLAG} /INTEGRITYCHECK" )
34
+ endif ()
35
+
32
36
add_subdirectory (lib)
33
37
if (NOT BUILD_STATIC)
34
38
add_subdirectory (loader)
Original file line number Diff line number Diff line change @@ -56,6 +56,10 @@ if(BUILD_INSTALLER)
56
56
set (LIB_COMPONENT_STRING "Loader" )
57
57
endif ()
58
58
59
+ if (MSVC AND L0_DLL_INTEGRITY_CHECKS)
60
+ set_target_properties (ze_tracing_layer PROPERTIES LINK_FLAGS "${CMAKE_CXX_LINKER_WRAPPER_FLAG} /INTEGRITYCHECK" )
61
+ endif ()
62
+
59
63
install (TARGETS ze_tracing_layer
60
64
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT ${SDK_COMPONENT_STRING}
61
65
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT ${LIB_COMPONENT_STRING}
Original file line number Diff line number Diff line change @@ -47,6 +47,10 @@ if(BUILD_INSTALLER)
47
47
set (LIB_COMPONENT_STRING "Loader" )
48
48
endif ()
49
49
50
+ if (MSVC AND L0_DLL_INTEGRITY_CHECKS)
51
+ set_target_properties (ze_validation_layer PROPERTIES LINK_FLAGS "${CMAKE_CXX_LINKER_WRAPPER_FLAG} /INTEGRITYCHECK" )
52
+ endif ()
53
+
50
54
install (TARGETS ze_validation_layer
51
55
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT ${SDK_COMPONENT_STRING}
52
56
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT ${LIB_COMPONENT_STRING}
You can’t perform that action at this time.
0 commit comments