conan-io / conan-center-index

Recipes for the ConanCenter repository
https://conan.io/center
MIT License
945 stars 1.71k forks source link

[package] assimp/5.4.1: Library 'assimp' not found in package. #24645

Open Jark5455 opened 1 month ago

Jark5455 commented 1 month ago

Description

Creating a cmake script similar to the one listed under assimp/test_package results in the error "Library 'assimp' not found"

Package and Environment Details

Conan profile

Host profile: [settings] arch=x86_64 build_type=Release compiler=gcc compiler.cppstd=gnu17 compiler.libcxx=libstdc++11 compiler.version=13 os=Linux

Build profile: [settings] arch=x86_64 build_type=Release compiler=gcc compiler.cppstd=gnu17 compiler.libcxx=libstdc++11 compiler.version=13 os=Linux

Steps to reproduce

  1. Copy the cmake script in test_package
  2. mkdir build, cd build, cmake ..

Logs

-- Using Conan toolchain: /home/CLionProjects/Project/cmake-build-release/conan_toolchain.cmake
-- Conan toolchain: C++ Standard 20 with extensions OFF
-- Conan: Target declared 'assimp::assimp'
CMake Error at cmake-build-release/cmakedeps_macros.cmake:67 (message):
  Library 'assimp' not found in package.  If 'assimp' is a system library,
  declare it with 'cpp_info.system_libs' property
Call Stack (most recent call first):
  cmake-build-release/assimp-Target-release.cmake:25 (conan_package_library_targets)
  cmake-build-release/assimpTargets.cmake:24 (include)
  cmake-build-release/assimp-config.cmake:16 (include)
  core/CMakeLists.txt:7 (find_package)

-- Configuring incomplete, errors occurred!
AbrilRBS commented 1 month ago

I've tried to reproduce this in Macos and had no luck, will try on a Linux docker image next, will keep you updated :)