Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Fix libcaesium lookup on Linux #260

Merged
merged 1 commit into from
Feb 17, 2024
Merged

Conversation

jtojnar
Copy link
Contributor

@jtojnar jtojnar commented Feb 17, 2024

find_library now needs either caesium or libcaesium.so to be able to find it.

Also link the result with target_link_libraries since find_library does not register dependencies.

https://cmake.org/cmake/help/latest/command/find_library.html
https://cmake.org/cmake/help/latest/variable/CMAKE_FIND_LIBRARY_PREFIXES.html

This is a follow up to 63761ac

@jtojnar
Copy link
Contributor Author

jtojnar commented Feb 17, 2024

CI failure looks unrelated.

@Lymphatus
Copy link
Owner

Re-runned the CI as the previous was a temporary error, but seems is failing to link the library

`find_library` now needs either `caesium` or `libcaesium.so` to be able to find it.

Also link the result with `target_link_libraries` since `find_library` does not register dependencies.

https://cmake.org/cmake/help/latest/command/find_library.html
https://cmake.org/cmake/help/latest/variable/CMAKE_FIND_LIBRARY_PREFIXES.html

This is a follow up to 63761ac
@jtojnar
Copy link
Contributor Author

jtojnar commented Feb 17, 2024

Hmm, looks like add_dependencies is not sufficient to link it. I have returned the target_link_libraries for the case we are not using system libcaesium.

@Lymphatus Lymphatus merged commit 0afd6a0 into Lymphatus:main Feb 17, 2024
3 checks passed
@jtojnar jtojnar deleted the linux-fix branch February 17, 2024 14:26
@Lymphatus Lymphatus mentioned this pull request Mar 8, 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