Closed craffael closed 5 years ago
So when you don’t specify the config, it is using the default version of lehrfempp that has already been added to hunter. When you do specify the config, you are choosing a specific version (I believe 0.8) that hasn’t been added to hunter or tested in hunter. Has anything changed in that package between versions that may cause this?
You were right. I should have tested this more thoroughly, there was one commit that introduced an error in the meantime. Arrgh.
hunter_add_package
/find_package
API used by me in the example is the same as in documentation. YesURL
/SHA1
. Yescmake_minimum_required(VERSION 3.10) include("cmake/HunterGate.cmake") HunterGate( URL "https://github.com/cpp-pm/hunter/archive/v0.23.217.tar.gz" SHA1 "4b36c0f8ffc8f3b5718d5e24629fb40c56c99b13" LOCAL )
project(GettingStarted) hunter_add_package(lehrfempp) find_package(lehrfempp CONFIG REQUIRED) add_executable(getting_started main.cc) target_link_libraries(getting_started LF::lf.base)
cmake/Hunter/config.cmake
hunter_config(lehrfempp URL "https://github.com/craffael/lehrfempp/archive/20bf18775ff80f227abea649a87683b1b3d62399.tar.gz" SHA1 "be08de982ad28a55f9512874f832e3718af684a3" )
cmake -H. -Bbin