Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected empty string with FetchContent-method #58

Closed
tastytea opened this issue Nov 6, 2019 · 0 comments · Fixed by cpp-pm/gate#6
Closed

Unexpected empty string with FetchContent-method #58

tastytea opened this issue Nov 6, 2019 · 0 comments · Fixed by cpp-pm/gate#6

Comments

@tastytea
Copy link

tastytea commented Nov 6, 2019

I'm getting the error Unexpected empty string, originating from

hunter_assert_not_empty_string("${HUNTER_CONFIGURATION_TYPES}")
. It works when I set HUNTER_CONFIGURATION_TYPES manually.

I do not get an error if I use the manual method.

  • I've created SSCCE reproducing the issue:
# CMakeLists.txt
cmake_minimum_required(VERSION 3.14)
set(HUNTER_PACKAGES PocoCpp)
include(FetchContent)
FetchContent_Declare(SetupHunter GIT_REPOSITORY https://github.com/cpp-pm/gate)
FetchContent_MakeAvailable(SetupHunter)

project(foo)
find_package(Poco REQUIRED Foundation CONFIG)

Here is the log until first error reported by Hunter, option HUNTER_STATUS_DEBUG is ON:

I've checked that the first error in logs IS NOT external.build.failed. Yes

  • I'm building on Linux.
  • I'm using system CMake
  • CMake version: <3.14.6>
  • I'm not using toolchain

I'm using the next command line on generate step:

cmake -DHUNTER_STATUS_DEBUG=ON

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant