Skip to content
ruslo edited this page Dec 17, 2013 · 15 revisions
  • download before first command parsed (need for proper find_package command work or external cmake libs)
  • internal projects must see each other (forward <LIB>_ROOT variable)
  • respect environment and cmake <LIB>_ROOT variables for customization use CUSTOM, all <LIB>_ROOT variables will be unset

expected example:

include(${HUNTER_ROOT}/cmake/Hunter) # load master file

hunter_clear_variables() # clear environment and cmake variables to load all from hunter

hunter_add_project(boo)
hunter_add_project(foo COMPONENTS x y z)

# all libraries must already be build and downloaded

include(${SUGAR_ROOT}/cmake/Sugar) # use downloaded
find_package(foo REQUIRED) # find downloaded libraries

about super-project file location

  • custom for each user, because each user can have different configurations. If super-project is global, unnecessary rebuilds may occur

change version

  • remove Stamp, Build, Install, tmp directories of project (like Stamp/project-default)
  • change version.cmake, regenerate cmake project
  • Add target HUNTER_CLEAN_foo ?

Clone this wiki locally