Skip to content

Commit

Permalink
(#8886) add support for CMakeDeps to CLI11
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminNavarro authored Jan 22, 2022
1 parent 4631d11 commit 504908f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions recipes/cli11/all/conanfile.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from conans import ConanFile, CMake, tools
import os

required_conan_version = ">=1.43.0"

class CLI11Conan(ConanFile):
name = "cli11"
Expand Down Expand Up @@ -36,6 +37,9 @@ def package_id(self):
self.info.header_only()

def package_info(self):
self.cpp_info.set_property("cmake_target_name", "CLI11::CLI11")
self.cpp_info.set_property("cmake_file_name", "CLI11")
self.cpp_info.set_property("pkg_config_name", "CLI11")
self.cpp_info.names["cmake_find_package"] = "CLI11"
self.cpp_info.names["cmake_find_package_multi"] = "CLI11"
self.cpp_info.names["pkg_config"] = "CLI11"

0 comments on commit 504908f

Please sign in to comment.