Repository navigation
usr.variables
Ruslan Baratov edited this page Mar 16, 2016
·
11 revisions
- Turn on/off Hunter package manager. If this variable is
OFFHunterGatemodule will do nothing,hunter_add_packagecommand will have no effects. You can add this variable asoptionwhile experimenting to keep backward compatibility with old package manager:
option(HUNTER_ENABLED "Enable Hunter package manager" OFF)
HunterGate(...) # ignored
if(WITH_FOO)
hunter_add_package(Foo) # ignored
find_package(Foo) # found in standard location
endif()- Default:
ON
- Path to Hunter root directory. Set this variable if you don't want to install Hunter packages to default location
- You can set environment variable with the same name to avoid specifying it for every project
- See HunterGate
-
Warning! If you manually cloned Hunter repository for development purposes the values of
URLandSHA1ofHunterGatewill be ignored, see notes and testing hints
- Print current build status
- Default:
ON
- Print a lot of info
- Set this variable to
ONbefore submitting bugs - Default:
OFF
- Apply
LOG_BUILD 1(see ExternalProject)
- Apply
LOG_INSTALL 1(see ExternalProject)
- Build type of the 3rd party packages
- See example
- Default:
Release,Debug
- Number of parallel builds that will be used in such native tools like
make -jNorxcodebuild -jobs N - For Visual Studio flag
/MPwill be used - Set variable to
0to disable adding any flags:HUNTER_JOBS_NUMBER=0 - Default: NUMBER_OF_LOGICAL_CORES
- Set this variable to
ONto run auto-install procedure if it's disabled byHUNTER_DISABLE_AUTOINSTALLenvironment variable - See
HUNTER_DISABLE_AUTOINSTALL
- Set this variable to
YESto disable building packages from sources. This may be useful in case you want to check that package can be loaded fully from local/server cache - Default:
NO
- Variable contains list of servers with cache binaries
- For now only GitHub supported (see overview)
- Variable should be modified before
HunterGatecommand:
list(APPEND HUNTER_CACHE_SERVERS "https://github.com/ingenue/hunter-cache")
HunterGate(URL ... SHA1 ...)-
Policy to control downloading cache from server. Possible values:
-
NO - never download cache from server, use local cache or build from sources
-
ONLY - never build from sources, use server/local cache
-
YES - try to download from server, build from sources if not found
| NO | ONLY | YES |
---------------------|-----|------|------ Build from sources | yes | no | yes | Download from server | no | yes | yes |
- Default is empty string. Effectively equivalent to YES.
- Same as CMake's
HUNTER_ROOTvariable. If both environment and CMake variables are set then CMake has a higher priority
- Use external directory
HUNTER_BINARY_DIRfor building external projects. This variable can be used to fix "path too long" error on windows
- Set this environment variable to non-empty value (e.g.
HUNTER_DISABLE_AUTOINSTALL=ON) to disable automatic initialization of Hunter root directory by HunterGate module. This will give you more control in some advanced usage situations, see examples. SetHUNTER_RUN_INSTALL=ONCMake variable each time you want to run auto-install procedure. Note that there is no need to set any variables if Hunter root is already installed.
Feel free to open new issue if you want to ask any questions.
- HOME
- Packages
- Android-Apk
- Android-Modules
- Android-SDK
- ArrayFire
- Assimp
- Async++
- Avahi
- BZip2
- Boost
- Boost.compute
- Boost.process
- CLAPACK
- Comet
- CppNetlib.URI
- CsvParserCPlusPlus
- Eigen
- Expat
- GPUImage
- GSL
- GTest
- GMock
- Igloo
- IntSizeof
- Jpeg
- JsonSpirit
- LLVM (Clang)
- Leathers
- Libssh2
- Lua
- MySQL-client
- nlohmann::json
- OpenCV
- OpenSSL
- PNG
- Poco C++
- PostgreSQL
- Protobuf
- Qt
- Qt-Android-CMake
- QtQmlManager
- RapidJSON
- Sugar
- TIFF
- Washer
- WTL
- ZeroMQ
- ZMQPP
- ZLIB
- rabbitmq-c
- sparsehash
- ccv
- cereal
- convertutf
- crashpad
- cvmatio
- dest
- dlib
- eos
- flatbuffers
- fmt
- freetype
- glm
- glog
- half
- hdf5
- ios_sim
- irrXML
- libyuv
- log4cplus
- minizip
- odb-pgsql
- odb-mysql
- ogles_gpgpu
- openddlparser
- poly2tri
- polyclipping
- spdlog
- szip
- thread-pool-cpp
- tinydir
- websocketpp
- msgpack
- wxWidgets
- xgboost
Don't see packages you need? Feel free to leave a package request.