Skip to content

Commit

Permalink
[util-linux-libuuid] Change CMake target from LibUUID::LibUUID to lib…
Browse files Browse the repository at this point in the history
…uuid::libuuid

* This is in line with what conan recipes seem to expect, which will
  minimise the number of patches required. LibUUID was chosen as the
  target name given this is what's used internally within cmake, but
  this isn't a public interface and so there is no common usage to take
  guidance from.

Closes conan-io#18554
  • Loading branch information
samuel-emrys committed Jul 15, 2023
1 parent 61c4f78 commit 266a1f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions recipes/util-linux-libuuid/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def package(self):

def package_info(self):
self.cpp_info.set_property("pkg_config_name", "uuid")
self.cpp_info.set_property("cmake_target_name", "LibUUID::LibUUID")
self.cpp_info.set_property("cmake_file_name", "LibUUID")
self.cpp_info.set_property("cmake_target_name", "libuuid::libuuid")
self.cpp_info.set_property("cmake_file_name", "libuuid")
self.cpp_info.libs = ["uuid"]
self.cpp_info.includedirs.append(os.path.join("include", "uuid"))
4 changes: 2 additions & 2 deletions recipes/util-linux-libuuid/all/test_package/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
cmake_minimum_required(VERSION 3.8)
project(test_package LANGUAGES C)

find_package(LibUUID REQUIRED CONFIG)
find_package(libuuid REQUIRED CONFIG)

add_executable(${PROJECT_NAME} test_package.c)
target_link_libraries(${PROJECT_NAME} PRIVATE LibUUID::LibUUID)
target_link_libraries(${PROJECT_NAME} PRIVATE libuuid::libuuid)
target_compile_features(${PROJECT_NAME} PRIVATE c_std_99)

0 comments on commit 266a1f1

Please sign in to comment.