Repository navigation
example.hunter_configuration_types
You got full control over what build type (Release/Debug) will be used while building your 3rd party packages.
Set HUNTER_CONFIGURATION_TYPES CMake variable to specify the list of build types to use while building all packages. Default value is Release + Debug:
> cmake -H. -B_builds -DHUNTER_STATUS_DEBUG=ON
...
-- [hunter *** DEBUG *** 2015-04-22T12:05:34] HUNTER_CONFIGURATION_TYPES: Release;DebugSet your option via command line:
> cmake -H. -B_builds -DHUNTER_STATUS_DEBUG=ON -DHUNTER_CONFIGURATION_TYPES=SuperRelease
...
-- [hunter *** DEBUG *** 2015-04-22T12:08:56] HUNTER_CONFIGURATION_TYPES: SuperReleaseNote that HUNTER_CONFIGURATION_TYPES now is in CMake cache, so if you run this configure again variable will be used from cache even if it's not set by user:
> cmake -H. -B_builds -DHUNTER_STATUS_DEBUG=ON
...
-- [hunter *** DEBUG *** 2015-04-22T12:11:22] HUNTER_CONFIGURATION_TYPES: SuperRelease> grep HUNTER_CONFIGURATION_TYPES _builds/CMakeCache.txt
HUNTER_CONFIGURATION_TYPES:STRING=SuperReleaseYou can remove cache to use defaults:
> rm _builds/CMakeCache.txt
> cmake -H. -B_builds -DHUNTER_STATUS_DEBUG=ON
...
-- [hunter *** DEBUG *** 2015-04-22T12:13:28] HUNTER_CONFIGURATION_TYPES: Release;DebugOr using -U option:
> rm -rf _builds
> cmake -H. -B_builds -DHUNTER_STATUS_DEBUG=ON -DHUNTER_CONFIGURATION_TYPES=SuperRelease
...
-- [hunter *** DEBUG *** 2015-04-22T12:16:04] HUNTER_CONFIGURATION_TYPES: SuperRelease> cmake -H. -B_builds -DHUNTER_STATUS_DEBUG=ON
...
-- [hunter *** DEBUG *** 2015-04-22T12:16:43] HUNTER_CONFIGURATION_TYPES: SuperRelease> cmake -H. -B_builds -DHUNTER_STATUS_DEBUG=ON -UHUNTER_CONFIGURATION_TYPES
...
-- [hunter *** DEBUG *** 2015-04-22T12:17:32] HUNTER_CONFIGURATION_TYPES: Release;DebugSee CMake documentation about variables' types.
Also you can set this option to your CMakeLists.txt (do it before command HunterGate):
# CMakeLists.txt
set(HUNTER_CONFIGURATION_TYPES MyRelease SuperDebug)
HunterGate(...)> cmake -H. -B_builds -DHUNTER_STATUS_DEBUG=ON
...
-- [hunter *** DEBUG *** 2015-04-22T12:25:22] HUNTER_CONFIGURATION_TYPES: MyRelease;SuperDebugYou can customize package using hunter_config command (see also other customizations):
# CMakeLists.txt
HunterGate(
URL "https://github.com/ruslo/hunter/archive/v0.8.10.tar.gz"
SHA1 "9308d01ea52c7b8cf1347073c982c679dbac3c09"
LOCAL # <----- Use local config.cmake
)
...
hunter_add_package(GTest)# cmake/Hunter/config.cmake
hunter_config(GTest VERSION 1.7.0-hunter-9 CONFIGURATION_TYPES Release Debug)
hunter_config(ZLIB VERSION 1.2.8-hunter-1 CONFIGURATION_TYPES Release SuperRelease)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.