cmake-conan icon indicating copy to clipboard operation
cmake-conan copied to clipboard

Add command line flags for host profile.

Open TobiSchluter opened this issue 2 years ago • 4 comments

This seems to be missing. With this, I can cross-build out of the box akin to

conan_cmake_run(
    SETTINGS ${settings}
    ENV ${conan_env}
    PROFILE_BUILD default
    PROFILE_HOST android

    REQUIRES
    boost/1.78.0
    catch2/2.13.8
    eigen/3.4.0
    expected-lite/0.6.2
    fmt/9.1.0
    nlohmann_json/3.11.2
    openssl/1.1.1o
    valijson/0.6
    BASIC_SETUP
    CMAKE_TARGETS
    CONAN_COMMAND ${CONAN_CMD}

    OPTIONS
    boost:without_stacktrace=True
    BUILD missing

    GENERATORS cmake_find_package)

TobiSchluter avatar Jan 18 '23 05:01 TobiSchluter

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Jan 18 '23 05:01 CLAassistant

I seem to have managed to mess up this patch when copying it between my trees, sorry about the two separate commits. Now it includes the whole change.

TobiSchluter avatar Jan 24 '23 07:01 TobiSchluter

Any interest? Just ran into this again when updating. I have another patch which adds support for -c flags, but I'd like to get this out of the way first.

TobiSchluter avatar Sep 25 '23 06:09 TobiSchluter

Hi @TobiSchluter

Thanks for your contribution, and sorry for taking so long to check it. We have been focused on releasing 2.0, and also for the new cmake-conan integration based on the new CMake dependency providers, there have been a few things that have fallen through the cracks.

memsharded avatar Sep 25 '23 07:09 memsharded