Skip to content

Add ability to specify conan profile for conan invocations #82

@xmkg

Description

@xmkg

ATM, automatically fetched Conan packages use the system's default conan profile. This causes inconvenience to end user when the user decides to use a custom toolchain or custom build options with conan.

A simple conan profile parameter will suffice for satisfying this need.

set(HADOUKEN_CONAN_PROFILE_LINE "")
 conan_cmake_run(
        REQUIRES ${HADOUKEN_CONAN_GOOGLE_BENCHMARK_PKG_NAME}/${HADOUKEN_CONAN_GOOGLE_BENCHMARK_VERSION}
        GENERATORS cmake_find_package
        BUILD missing
       ${HADOUKEN_CONAN_PROFILE_LINE}
        OUTPUT_QUIET
    )

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions