mustafakemalgilor/hadouken

Add ability to specify conan profile for conan invocations

mustafakemalgilor opened this issue · 0 comments

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
    )