Skip to content

Fix missing link to required library in Windows when XLINK_LIBUSB_SYSTEM is ON#79

Merged
themarpe merged 4 commits intoluxonis:masterfrom
traversaro:patch-4
Jun 17, 2024
Merged

Fix missing link to required library in Windows when XLINK_LIBUSB_SYSTEM is ON#79
themarpe merged 4 commits intoluxonis:masterfrom
traversaro:patch-4

Conversation

@traversaro
Copy link
Copy Markdown
Contributor

The PathCchRemoveFileSpec function contained in Pathcch.lib is called in the code in Windows (see

if (PathCchRemoveFileSpec(rawPath.data(), rawPath.size()) != S_OK) {
), so the Pathcch.lib library should be linked even if XLINK_LIBUSB_SYSTEM is set to ON.

@traversaro
Copy link
Copy Markdown
Contributor Author

The Windows failure is unrelated and related to luxonis/depthai-core#1037 and cpp-pm/hunter#747 .

Comment thread CMakeLists.txt Outdated
@themarpe themarpe requested a review from moratom June 17, 2024 15:57
Co-authored-by: TheMarpe <martin.peterlin7@gmail.com>
@traversaro
Copy link
Copy Markdown
Contributor Author

The merge confused the PR, let me do it from scratch.

@traversaro
Copy link
Copy Markdown
Contributor Author

The merge confused the PR, let me do it from scratch.

Ok, now it is clean, let me know if it is ok to merge with squash or you prefer that I cleanup the history.

@themarpe themarpe merged commit 5d6a78a into luxonis:master Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants