Created
January 31, 2019 20:51
-
-
Save monsdar/02bf05d0b0c2ec1875ec5f9a78bc0701 to your computer and use it in GitHub Desktop.
Shows an issue with CMake() not being initializable from within the ctor. conan-io/conan issue #4437
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from CustomConanFile import CustomConanFile | |
class SpecificConan(CustomConanFile): | |
name = "Hello" | |
version = "0.1" | |
settings = "os", "compiler", "build_type", "arch" | |
def build(self): | |
print(str(self.cmake)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from conans import ConanFile, CMake | |
class CustomConanFile(ConanFile): | |
#new ctor (after 1.3.0) | |
def __init__(self, output, runner, display_name="", user=None, channel=None): | |
super(CustomConanFile, self).__init__(output, runner) | |
self.cmake = CMake(self) | |
#...some more stuff here... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment