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

Support conan.cmake in exported packages #13

Merged
merged 1 commit into from
Jan 24, 2017

Conversation

sixten-hilborn
Copy link
Contributor

See #10.

if(CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)

# TODO: Better detection
if(CONAN_EXPORTED OR CONAN_COMPILER)
Copy link
Member

Choose a reason for hiding this comment

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

I am not sure if I'd use CONAN_COMPILER for detection, some users might be feeding it from the command line to cmake. CONAN_EXPORTED would do the task, wouldn't it? Is it necessary to set it to ON then?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agree, this is a temporary workaround before CONAN_EXPORTED was defined by conan, but it's supposed to work with both 0.18 and 0.19.

content = """cmake_minimum_required(VERSION 2.8)
project(conan_wrapper CXX)

set(CONAN_EXPORTED ON)
Copy link
Member

Choose a reason for hiding this comment

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

I guess we should remember to remove this CONAN__EXPORTED ON line, when the conan codebase already sets it automatically.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's true, it's not needed from the next conan release.

@memsharded memsharded merged commit 51bace9 into conan-io:master Jan 24, 2017
@sixten-hilborn sixten-hilborn deleted the exported branch February 18, 2017 22:12
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