Skip to content

Instantly share code, notes, and snippets.

@monsdar
Created January 31, 2019 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save monsdar/02bf05d0b0c2ec1875ec5f9a78bc0701 to your computer and use it in GitHub Desktop.
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
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))
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