Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sample/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ cmake_minimum_required(VERSION 3.29.0 FATAL_ERROR)
# For windows copy the library to the msix and samples directory
if(WIN32)
add_custom_target(samples ALL
COMMAND ${CMAKE_COMMAND} -E copy "bin/msix.dll" "samples/msix.dll"
COMMAND ${CMAKE_COMMAND} -E copy "${MSIX_BINARY_ROOT}/bin/${CMAKE_CFG_INTDIR}/msix.dll" "samples/msix.dll"
WORKING_DIRECTORY "${MSIX_BINARY_ROOT}"
DEPENDS msix)
else()
Expand Down
3 changes: 1 addition & 2 deletions src/test/msixtest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,5 @@ target_link_libraries(${PROJECT_NAME} ${MsixTestLibs})
# For windows copy the library
if(WIN32)
add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy "bin/msix.dll" "msixtest/msix.dll"
WORKING_DIRECTORY "${MSIX_BINARY_ROOT}")
COMMAND ${CMAKE_COMMAND} -E copy "${MSIX_BINARY_ROOT}/bin/${CMAKE_CFG_INTDIR}/msix.dll" "${MSIX_TEST_OUTPUT_DIRECTORY}/msixtest/msix.dll")
endif()