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

[feature] Tool: create module official cmake targets #8360

Closed
1 task done
uilianries opened this issue Jan 18, 2021 · 1 comment · Fixed by #8533
Closed
1 task done

[feature] Tool: create module official cmake targets #8360

uilianries opened this issue Jan 18, 2021 · 1 comment · Fixed by #8533

Comments

@uilianries
Copy link
Member

uilianries commented Jan 18, 2021

A build helper often used in CCI which could be part of Conan Tools.

First idea here.

Also present in CCI now:
conan-io/conan-center-index#4257
conan-io/conan-center-index#4258

from conans.tools import create_module_official_cmake_targets

...

def package(self):
    create_module_official_cmake_targets(
            os.path.join(self.package_folder, "lib", "cmake", "conan-official-foo-targets.cmake"), 
            [{"official": "foo", "namespaced": "foo::foo"}]
     )

/cc @SpaceIm @madebr

@SSE4
Copy link
Contributor

SSE4 commented Jan 19, 2021

let's do it! should be safe, and we already have a working implementation, so PR shouldn't take a significant effort.

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