Skip to content

Commit

Permalink
Fix crashpad handler copy
Browse files Browse the repository at this point in the history
  • Loading branch information
leoparente committed Aug 7, 2024
1 parent b103d37 commit d185688
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/pktvisord/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ target_link_libraries(pktvisord

#copy conan crashpad built binary to binaries folder
if(NOT CRASHPAD_NOT_SUPPORTED)
find_package(crashpad REQUIRED CONFIG)
set(CONAN_BIN_DIRS_CRASHPAD ${crashpad_INCLUDE_DIR}/../bin)
if(WIN32)
configure_file("${CONAN_BIN_DIRS_CRASHPAD}/crashpad_handler.exe" "${PROJECT_BINARY_DIR}/bin/crashpad_handler.exe" COPYONLY)
else()
# configure_file("${CONAN_BIN_DIRS_CRASHPAD}/crashpad_handler" "${PROJECT_BINARY_DIR}/bin/crashpad_handler" COPYONLY)
configure_file("${CONAN_BIN_DIRS_CRASHPAD}/crashpad_handler" "${PROJECT_BINARY_DIR}/bin/crashpad_handler" COPYONLY)
endif()
endif()

0 comments on commit d185688

Please sign in to comment.