Repository navigation
error.hunteraddpackage.after.project
Ruslan Baratov edited this page Jun 29, 2015
·
1 revision
- CMake fatal error with message:
[hunter ** FATAL ERROR **] Please set hunter_add_package *after* project command
- First call to
hunter_add_packagecommand will trigger calculation of internal variables likeconfig-id/toolchain-id. This must be done after toolchain is loaded (i.e. after firstprojectcommand) because variables from toolchain likeAPPLEorANDROIDcan be used in configuration file withhunter_config.
- In general sequence must looks like this (see also error.huntergate.before.project):
# Check CMake version before any commands
cmake_minimum_required(VERSION 3.0)
# Load HunterGate module
include("cmake/HunterGate.cmake")
# Use HunterGate module before first `project` command
HunterGate(
URL ...
SHA1 ...
)
# Your project
project(Foo)
# Use hunter_add_package after project command
hunter_add_package(Boo)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.