Skip to content

Commit

Permalink
fusepp: add suggested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
winternet committed Feb 21, 2022
1 parent 1ea2ec4 commit 855a367
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
9 changes: 9 additions & 0 deletions recipes/fusepp/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,12 @@ def package(self):
self.copy("LICENSE", dst="licenses", src=self._source_subfolder)
cmake = self._configure_cmake()
cmake.install()

def package_info(self):
self.cpp_info.libs = ["fusepp"]
# TODO: Remove after Conan 2.0
self.cpp_info.names["cmake_find_package"] = "fusepp"
self.cpp_info.names["cmake_find_package_multi"] = "fusepp"

self.cpp_info.set_property("cmake_file_name", "fusepp")
self.cpp_info.set_property("cmake_target_name", "fusepp")
6 changes: 4 additions & 2 deletions recipes/fusepp/all/test_package/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ cmake_minimum_required(VERSION 3.1)
project(test_package)

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

find_package(fusepp CONFIG REQUIRED)

add_executable(${PROJECT_NAME} example.cpp)
target_link_libraries(${PROJECT_NAME} ${CONAN_LIBS})
target_link_libraries(${PROJECT_NAME} fusepp::fusepp)
5 changes: 1 addition & 4 deletions recipes/fusepp/all/test_package/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@

class TestPackageConan(ConanFile):
settings = "os", "compiler", "build_type", "arch"
generators = "cmake"

def requirements(self):
self.requires("libfuse/3.10.5")
generators = "cmake", "cmake_find_package_multi"

def build(self):
cmake = CMake(self)
Expand Down

0 comments on commit 855a367

Please sign in to comment.