Skip to content
Ruslan Baratov edited this page Apr 17, 2015 · 2 revisions

HunterGate.cmake

HUNTER_ROOT

  • Set by hunter_gate_detect_root function (if already defined by user, this variable leaved as is). See layout of directories.

HUNTER_ROOT_INFO

  • Set by hunter_gate_detect_root function

HUNTER_URL

HUNTER_SHA1

  • Hunter archive SHA1. Set by HunterGate. Same behaviour as HUNTER_URL.

HUNTER_BASE

  • Set by HunterGate (usually ${HUNTER_ROOT}/_Base/${HUNTER_SHA1}). This is the directory where all packages that belongs to given SHA1 resides. See [layout] (https://github.com/ruslo/hunter/wiki/EP_BASE-layout).
  • This variable is customizable if used without gate, e.g. for testing hunter itself:
cmake -H./examples/Sugar/ -B./_builds -DHUNTER_ROOT="`pwd`" -DHUNTER_BASE="`pwd`/_builds/_Base"

HUNTER_SELF

  • Set by HunterGate (usually ${HUNTER_BASE}/Self). Directory with unpacked hunter archive sources. This is the place where master file, config, download schemes, recipies etc. lives.

HUNTER_LOCK_PATH

  • Synchronization directory. Only one process that successfully create that directory allowed to init HUNTER_BASE. Usually ${HUNTER_BASE}/directory-lock.

HUNTER_LOCK_INFO

  • Information about locked directory. File with PROJECT_BINARY_DIR string. Created by hunter_gate_try_lock function. Set to ${HUNTER_LOCK_PATH}/info.

HUNTER_LOCK_FULL_INFO

  • Information about locked directory. File with PROJECT_BINARY_DIR and timestamp of creation. Created by hunter_gate_try_lock function. Set to ${HUNTER_LOCK_PATH}/fullinfo.

HUNTER_GATE_INSTALL_DONE

  • Synchronization file. If multiple processes simultaniously try to init HUNTER_BASE directory (by HunterGate command) only one of them will do it, other will wait until HUNTER_GATE_INSTALL_DONE file created. Usually ${HUNTER_BASE}/install-gate-done.

HUNTER_IGNORE_BROKEN_PACKAGE_ERROR

HUNTER_SKIP_LOCK

  • When requested package want to trigger new package build itself (i.e. call dependent hunter_add_package) it wants to acquire the lock also, but this is not possible since lock already acquired by current build. This variable resolve an issue. When HUNTER_SKIP_LOCK is TRUE the locking ignored. Also this variable can be used as a workaround for this error.

cmake/Hunter

HUNTER_PACKAGE_DOWNLOAD_DIR

  • Directory with downloaded archives. Usually ${HUNTER_BASE}/Download/<package-name>. Can be customized by user for testing purpose.

External

HUNTER_CMAKE_GENERATOR

  • Set by toolchain. This generator used for all the projects in superbuild (optimization possible, like NMake -> Visual Studio)

Clone this wiki locally