-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Description
Current build line looks something like:
conan build . -s:h compiler.cppstd=23 -s:h openql/*:build_type=Release -o openql/*:build_tests=True -o openql/*:disable_unitary=True -b missing
As a result of the conversation for this issue that I opened, I've found out that we could turn it into something like:
conan build . -pr=conan/profiles/tests-release -b missing
Explanation (see also here):
- If you set
CMAKE_CXX_STANDARDin your project, you don't need to pass the compiler version as a command line parameter. I've noticed we were not doing that in OpenQL. - There is a way of not working with command line options at all, but defining them in a profile. For example, we could provide a
conan/profilesfolder together with the code, including a set of predefined profiles, e.g.tests-release, which would look something like:
include(default)
[settings]
openql/*:build_type=Release
[options]
openql/*:asan_enabled=False
openql/*:build_tests=True
openql/*:disable_unitary=True
And then just compile with conan build . -pr=conan/profiles/tests-release.
Or, these profiles may be copied to the ~./conan2/profiles folder, e.g. for this case, with a name such as openql-tests-release, and then build with conan build . -pr=openql-tests-release.
Metadata
Metadata
Assignees
Labels
No labels