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

Allow passing build and host profiles through to conan #195

Merged
merged 1 commit into from
Jan 21, 2023

Conversation

bwhitchurch
Copy link
Contributor

Added additional variables with sensible defaults so that users may specify a host and/or build profile for the cmake_install_command. This is useful in cross compiling scenarios where the single profile argument is not enough.

Comment on lines +80 to +84
if("${ProjectOptions_CONAN_PROFILE}" STREQUAL "")
set(CONAN_DEFAULT_PROFILE "default")
else()
set(CONAN_DEFAULT_PROFILE ${ProjectOptions_CONAN_PROFILE})
endif()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be moved under the if section of the next condition. It would potentially simplify the code a bit.

@aminya aminya merged commit 7a0987f into aminya:main Jan 21, 2023
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 this pull request may close these issues.

None yet

2 participants