Skip to content

Commit

Permalink
chore: clean up recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
gocarlos committed Feb 26, 2020
1 parent 5ff307d commit 73bc732
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 2 additions & 8 deletions recipes/mdns/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,11 @@ class MdnsConan(ConanFile):
license = "Public Domain or MIT"
homepage = "https://github.com/mjansson/mdns"
url = "https://github.com/conan-io/conan-center-index"
description = """
Public domain mDNS/DNS-SD library in C
"""
description = """Public domain mDNS/DNS-SD library in C"""
topics = ("mdns")
settings = "os"
generators = "cmake"
no_copy_source = True

_cmake = None

@property
def _source_subfolder(self):
return "source_subfolder"
Expand All @@ -37,9 +32,8 @@ def package(self):
self.copy(pattern="*.h", dst="include", src=self._source_subfolder)

def package_info(self):
self.cpp_info.libs = ["mdns"]
if self.settings.os == "Windows":
self.cpp_info.system_libs = ["iphlpapi", "ws2_32"]
self.cpp_info.libs = ["iphlpapi", "ws2_32"]
if str(self.settings.os) in ["Linux", "Android"]:
self.cpp_info.libs.append('pthread')

Expand Down
2 changes: 1 addition & 1 deletion recipes/mdns/all/test_package/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(test_package)
cmake_minimum_required(VERSION 2.8.11)
project(test_package C)

include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()
Expand Down

0 comments on commit 73bc732

Please sign in to comment.