cpp-pm / hunter

CMake driven cross-platform package manager for C/C++.
BSD 2-Clause "Simplified" License
613 stars 181 forks source link

Single HunterGate vs per package #234

Open caseymcc opened 4 years ago

caseymcc commented 4 years ago

Have we thought about a way to make it so only the one HunterGate is ever used. I am trying to add a repo that uses freetype however I am trying to test the package from the hunter repo directory (which support was removed for but added back to HunterGate cpp-pm/gate@28e8eda) the current version of HunterGate supports it however the version in the freetype does not. I am assuming i need to update the freetype HunterGate but would it be better to come up with a way to make only the top level HunterGate run or change HunterGate so that it downloads the latestest HunterGate rather than having that part included in the package repo?

NeroBurner commented 4 years ago

Maybe we could add an early exit in the gate file if the hunter related functions are already defined? Then only the top level hunter functions are defined

caseymcc commented 4 years ago

There is already an early exit with HUNTER_GATE_DONE, however the code change is in the early exit.