question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[bug] MAP_IMPORTED_CONFIG_* does not work in CMakeDeps

See original GitHub issue

Hello, sorry for unformatted issue!

In #11788 @lasote changed the way how dependencies handled by introducing new targets (here and here). It seems that these targets were forgotten to mark IMPORTED.

The specific problem: this change breaks our build, where we are using dependencies with build_type=Release, while building consumer with any other build_type (e.g. RelWithDebInfo). We are doing this by carefully maintain the CMAKE_MAP_IMPORTED_CONFIG_* in consumer.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
lasotecommented, Sep 6, 2022

Thanks, I’ve been able to reproduce the issue. I will come back with a fix.

0reactions
lasotecommented, Sep 7, 2022

Ok, I got something working doing set(CMAKE_MAP_IMPORTED_CONFIG_DEBUG Release) and adjusting the IMPORTED_LOCATION to IMPORTED_LOCATION_XXX (in the macros.py of the CMakeDeps). I’m seeing if I broke any other tests and will discuss this with the team.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found