-
Notifications
You must be signed in to change notification settings - Fork 27
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
Fix conditionally declared vars #161
base: develop
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #161 +/- ##
========================================
Coverage 64.06% 64.06%
========================================
Files 1079 1079
Lines 55679 55679
Branches 4118 4118
========================================
Hits 35669 35669
Misses 20010 20010 ☔ View full report in Codecov by Sentry. |
Private downstream CI failed. |
Private downstream CI failed. |
596be71
to
911b10a
Compare
So @tmi it looks like that curl was found, but the CURL_LIBRARIES variable was set incorreclty (to the directory containing the libs, not the libs themselves.) I didn't find an easy way to ask ecbuild any particular option, nor did I find an existing FindCURL.cmake module -- I really thought one has existed before (?) The default behaviour of ecbuild is to also package search with modules (which I'm now bundling here) and generally pkgconfig is also present, which this module takes advantage of, and the development version of curl also prepares such a file, which helps. I'm getting @wdeconinck and @danovaro so we can confirm this is the way forward -- myself I'm against adding more (and more) modules, I didn't see a way out this time. This version works on the hpc, mac + homebrew, docker images (custom dev build) -- I've tried. There are failing tests, but I suspect they've always failed (!) I'm not sure curl (or "EasyCurl") has had working tests, but that's a suspicion only. Edit: the current situation, after compilation problems without CURL, is linking, errors like: |
Private downstream CI failed. |
Private downstream CI failed. |
I was having issues compiling eckit because of
so I'm just moving the variable declaration prior to the
#if
block. Not sure wether this makes sense in case there is no eckit curl, but at least it compiles for me now :)