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

CMakeLists.txt: fixed mistyped name tsl-robin-map_FOUND variable. #274

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

trunkmaster
Copy link
Member

This change let package maintainers use tsl-robin-map_DIR cmake parameter with path set to cloned and built robin-map repo.

This change let package maintainers use `tsl-robin-map_DIR` cmake parameter
with path set to cloned and built robin-map repo.
@davidchisnall davidchisnall merged commit 7f44d19 into gnustep:master Feb 5, 2024
51 checks passed
@davidchisnall
Copy link
Member

Great catch, thanks! I wonder if we should do a 2.2.1 to incorporate this. I completely missed it in review.

@davidchisnall
Copy link
Member

FYI: Part of the motivation for this change (modulo the bug that you've fixed) is that package maintainers should be able to use their system-installed version, they shouldn't need to set tsl-robin-map_DIR as long as CMake's search path for packages includes the system install location.

@trunkmaster
Copy link
Member Author

FYI: Part of the motivation for this change (modulo the bug that you've fixed) is that package maintainers should be able to use their system-installed version, they shouldn't need to set tsl-robin-map_DIR as long as CMake's search path for packages includes the system install location.

Not exactly. I mean cloning robin-map github repo, configure, build and after that specify -Dtsl-robin-map_DIR=<directory/where/robin-map/built>. I don't need to install robin-map in that case.

@trunkmaster
Copy link
Member Author

Great catch, thanks! I wonder if we should do a 2.2.1 to incorporate this. I completely missed it in review.

Yes, make a new tag please!

@qmfrederik
Copy link
Collaborator

Not exactly. I mean cloning robin-map github repo, configure, build and after that specify -Dtsl-robin-map_DIR=<directory/where/robin-map/built>. I don't need to install robin-map in that case.

The build system should do that for you through FetchContent. So you shouldn't have to manually clone that repo, unless you're looking for a specific version of robin-map?

@davidchisnall
Copy link
Member

I presume the use case here is packaging systems that don’t want to add a package for robin map as a build dep, but also don’t allow package builders to connect to the network during the build phase (an entirely sensible security policy).

It’s worth noting that FetchContent has some existing support for this. There are a couple of CMake variables that you can set to tell it not to try downloading and where you’ve downloaded it to. It will then work with the existing path.

@qmfrederik
Copy link
Collaborator

That makes sense, thanks for the clarification!

@qmfrederik qmfrederik mentioned this pull request Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants