From 6f83c63cf5bf63ccdf6cf46b32633d0880983605 Mon Sep 17 00:00:00 2001 From: Siim Meerits Date: Thu, 14 Oct 2021 16:51:12 +0300 Subject: [PATCH] libfreenect2: Test package update. --- recipes/libfreenect2/all/test_package/CMakeLists.txt | 7 ++++--- recipes/libfreenect2/all/test_package/conanfile.py | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/recipes/libfreenect2/all/test_package/CMakeLists.txt b/recipes/libfreenect2/all/test_package/CMakeLists.txt index 55427248d4c0d..5742a7e29c0d5 100644 --- a/recipes/libfreenect2/all/test_package/CMakeLists.txt +++ b/recipes/libfreenect2/all/test_package/CMakeLists.txt @@ -2,10 +2,11 @@ cmake_minimum_required(VERSION 3.1) project(test_package LANGUAGES CXX) include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) -conan_basic_setup() +conan_basic_setup(TARGETS) -find_package(freenect2 REQUIRED CONFIG) +find_package(freenect2 REQUIRED) add_executable(${PROJECT_NAME} test_package.cpp) -target_link_libraries(${PROJECT_NAME} freenect2::freenect2) +target_link_libraries(${PROJECT_NAME} PRIVATE ${freenect2_LIBRARIES}) +target_include_directories(${PROJECT_NAME} PRIVATE ${freenect2_INCLUDE_DIRS}) set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 11) diff --git a/recipes/libfreenect2/all/test_package/conanfile.py b/recipes/libfreenect2/all/test_package/conanfile.py index 49a3a66ea5bad..3da371b660e0a 100644 --- a/recipes/libfreenect2/all/test_package/conanfile.py +++ b/recipes/libfreenect2/all/test_package/conanfile.py @@ -4,7 +4,7 @@ class TestPackageConan(ConanFile): settings = "os", "compiler", "build_type", "arch" - generators = "cmake", "cmake_find_package_multi" + generators = "cmake", "cmake_find_package" def build(self): cmake = CMake(self)