Skip to content

Fix CMake configure on Windows #689

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

Merged
merged 2 commits into from
May 6, 2025
Merged

Fix CMake configure on Windows #689

merged 2 commits into from
May 6, 2025

Conversation

momo5502
Copy link
Contributor

@momo5502 momo5502 commented May 3, 2025

Calling target_link_libraries before a target has been added seems to cause errors during CMake configuration.

Since BCrypt was fixed in b508028, this error seems to occur.

Moving the target_link_libraries call after the library has been added fixes this.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Signed-off-by: Steffen Jaeckel <[email protected]>
Copy link
Member

@sjaeckel sjaeckel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I took the liberty to add a commit that runs the CMake builds on Appveyor.

https://ci.appveyor.com/project/libtom/libtomcrypt/builds/52001098 also shows that the CMake build on Windows was broken before your patch, so thanks a lot for that!

@sjaeckel sjaeckel merged commit d448df1 into libtom:develop May 6, 2025
79 checks passed
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.

None yet

3 participants