Skip to content

error.unexpected.hunter_config

Ruslan Baratov edited this page Mar 4, 2016 · 3 revisions
What happens
  • CMake fatal error with message [hunter ** FATAL ERROR **] Unexpected 'hunter_config' usage ...
Explanation
  • hunter_config designed to be used in a special file config.cmake which is loaded and analyzed internally by Hunter. Users must not call this function explicilty in CMakeLists.txt. The only correct way to use this function is to create separate config.cmake file and load it by HunterGate
What to do
Developer notes
  • Error can be suppressed by set(HUNTER_ALLOW_CONFIG_LOADING YES) while using in unit tests

Clone this wiki locally