Skip to content

Commit

Permalink
set RUNTIME DESTINATION in install for layer libraries (#122)
Browse files Browse the repository at this point in the history
Per https://cmake.org/cmake/help/latest/command/install.html
specifying RUNTIME DESTINATION in install commands for layer libraries
to ensure that build DLL files end up installed alongside ze_loader.dll

The install for ze_loader sets RUNTIME DESTINATION as required.
  • Loading branch information
oleksandr-pavlyk authored Nov 30, 2023
1 parent b115569 commit 234644d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/layers/tracing/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ set_target_properties(${TARGET_NAME} PROPERTIES

install(TARGETS ze_tracing_layer
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY
DESTINATION ${CMAKE_INSTALL_LIBDIR}
COMPONENT level-zero
Expand All @@ -58,6 +59,7 @@ install(TARGETS ze_tracing_layer

install(TARGETS ze_tracing_layer
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY
DESTINATION ${CMAKE_INSTALL_LIBDIR}
COMPONENT level-zero-devel
Expand Down
2 changes: 2 additions & 0 deletions source/layers/validation/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ set_target_properties(${TARGET_NAME} PROPERTIES

install(TARGETS ze_validation_layer
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY
DESTINATION ${CMAKE_INSTALL_LIBDIR}
COMPONENT level-zero
Expand All @@ -45,6 +46,7 @@ install(TARGETS ze_validation_layer

install(TARGETS ze_validation_layer
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY
DESTINATION ${CMAKE_INSTALL_LIBDIR}
COMPONENT level-zero-devel
Expand Down

0 comments on commit 234644d

Please sign in to comment.