Skip to content

Commit

Permalink
it is header only
Browse files Browse the repository at this point in the history
  • Loading branch information
jgsogo committed Jan 25, 2018
1 parent 2c64c3d commit 70c29b1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,16 @@ def source(self):
#Rename to "source_subfolder" is a convention to simplify later steps
os.rename(extracted_dir, self.source_subfolder)


def build(self):
cmake = CMake(self)
cmake.definitions["CPPTOML_BUILD_EXAMPLES"] = self.options.build_examples
cmake.configure(build_folder=self.build_subfolder)
cmake.build()
cmake.install()

def package_info(self):
self.cpp_info.libs = tools.collect_libs(self)
def package(self):
self.copy(pattern="LICENSE", dst="license", src=self.source_subfolder)

def package_id(self):
self.info.header_only()

0 comments on commit 70c29b1

Please sign in to comment.