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] CMakeToolchain: add a variable with all runtime library directories #15810

Open
1 task
jcar87 opened this issue Mar 5, 2024 · 0 comments · May be fixed by #15914
Open
1 task

[feature] CMakeToolchain: add a variable with all runtime library directories #15810

jcar87 opened this issue Mar 5, 2024 · 0 comments · May be fixed by #15914
Assignees

Comments

@jcar87
Copy link
Contributor

jcar87 commented Mar 5, 2024

What is your suggestion?

In a consumer CMake project, I would like Conan to provide me with a variable to be able to call either:

  • install(RUNTIME_DEPENDENCY_SET ...)
  • file(GET_RUNTIME_DEPENDENCIES ...)

example:

install(TARGETS my_app
    DESTINATION ${CMAKE_INSTALL_BINDIR}
    RUNTIME_DEPENDENCY_SET my_app_deps
)

install(RUNTIME_DEPENDENCY_SET my_app_deps
    PRE_EXCLUDE_REGEXES
        [[api-ms-win-.*]]
        [[ext-ms-.*]]
        [[kernel32\.dll]]
        [[libc\.so\..*]] [[libgcc_s\.so\..*]] [[libm\.so\..*]] [[libstdc\+\+\.so\..*]]
    POST_EXCLUDE_REGEXES
        [[.*/system32/.*\.dll]]
        [[^/lib.*]]
        [[^/usr/lib.*]]
    DIRECTORIES ${CONAN_RUNTIME_LIB_DIRS}
)

Have you read the CONTRIBUTING guide?

  • I've read the CONTRIBUTING guide
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.

3 participants