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

Support using an existing fast_float CMake target #118

Closed
ajtribick opened this issue Jun 14, 2024 · 2 comments
Closed

Support using an existing fast_float CMake target #118

ajtribick opened this issue Jun 14, 2024 · 2 comments

Comments

@ajtribick
Copy link

Suppose I have both fast_float and scnlib as subdirectories/submodules of my project. If possible, I would like to be able to have scnlib use the existing FastFloat::fast_float target generated by including the fast_float subdirectory rather than trying to find an installed version via find_package or using FetchContent.

This would be useful in situations where the build infrastructure does not support doing downloads at build time.

@eliaskosunen
Copy link
Owner

In 74c39b7, find_package is only called if the target is not already defined. How's that?

@ajtribick
Copy link
Author

Great, thanks a lot!

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

No branches or pull requests

2 participants