error.unexpected.hunter_config¶
What happens¶
- CMake fatal error with message
[hunter ** FATAL ERROR **] Unexpected 'hunter_config' usage ...
Explanation¶
hunter_config
designed to be used in a special fileconfig.cmake
, which is loaded and analyzed internally by Hunter. Users must not call this function explicitly inCMakeLists.txt
. The only correct way to use this function is to create separateconfig.cmake
file and load it byHunterGate
Developer notes¶
- Error can be suppressed by
set(HUNTER_ALLOW_CONFIG_LOADING YES)
while using in unit tests