[bug] MAP_IMPORTED_CONFIG_* does not work in CMakeDeps
See original GitHub issueHello, 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:
- Created a year ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks, I’ve been able to reproduce the issue. I will come back with a fix.
Ok, I got something working doing
set(CMAKE_MAP_IMPORTED_CONFIG_DEBUG Release)
and adjusting theIMPORTED_LOCATION
toIMPORTED_LOCATION_XXX
(in themacros.py
of the CMakeDeps). I’m seeing if I broke any other tests and will discuss this with the team.