Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opendis6: Update package name #24487

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions recipes/libdis6/all/conandata.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
sources:
"0.1.0":
url: "https://github.com/crhowell3/libdis6/archive/refs/tags/v0.1.0.tar.gz"
sha256: "3079f3bafa8f90c563ea2a0796cfff9516237a0f014d137f5bcd47c6d51136ce"
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

required_conan_version = ">=1.53.0"

class OpenDis6Conan(ConanFile):
name = "opendis6"
homepage = "https://github.com/crhowell3/opendis6"
class libdis6Conan(ConanFile):
name = "libdis6"
homepage = "https://github.com/crhowell3/libdis6"
description = "Modern C++ implementation of IEEE 1278.1a-1998"
topics = ("library", "protocol", "dis")
url = "https://github.com/conan-io/conan-center-index"
Expand Down Expand Up @@ -86,10 +86,10 @@ def package(self):
rmdir(self, os.path.join(self.package_folder, "share"))

def package_info(self):
self.cpp_info.libs = ["OpenDIS6"]
self.cpp_info.set_property("cmake_file_name", "OpenDIS")
self.cpp_info.set_property("cmake_target_name", "OpenDIS::OpenDIS6")
self.cpp_info.set_property("cmake_target_aliases", ["OpenDIS::DIS6","OpenDIS6"])
self.cpp_info.libs = ["dis6"]
self.cpp_info.set_property("cmake_file_name", "libdis6")
self.cpp_info.set_property("cmake_target_name", "libdis6::dis6")
self.cpp_info.set_property("cmake_target_aliases", ["libdis6::dis6","dis6"])

if self.settings.os in ["Linux", "FreeBSD"]:
self.cpp_info.system_libs.append("m")
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
cmake_minimum_required(VERSION 3.15)
project(test_package LANGUAGES CXX)

find_package(OpenDIS CONFIG REQUIRED)
find_package(libdis6 CONFIG REQUIRED)

add_executable(test_package_dis test_package.cpp)
target_link_libraries(test_package_dis PRIVATE OpenDIS::OpenDIS6)
target_link_libraries(test_package_dis PRIVATE libdis6::dis6)
set_target_properties(test_package_dis PROPERTIES CXX_STANDARD 14)
File renamed without changes.
File renamed without changes.
4 changes: 0 additions & 4 deletions recipes/opendis6/all/conandata.yml

This file was deleted.

Loading