Skip to content

[CMake] [assimp] port only includes release library in find_package output #4026

@jarruda

Description

@jarruda

Package: assimp
Triplet (tested): x64-windows-static

Problem:
find_package sets up the ASSIMP_LIBRARIES variable, but that variable only contains the release library for assimp-vc140-mt.lib. assimp-vc140-mtd.lib is present in the debug dir.

Repro:

  1. vcpkg install assimp:x64-windows-static
  2. cmake .. -G "Visual Studio 15 2017 Win64" -DCMAKE_TOOLCHAIN_FILE="C:\Users\arrudaj\vcpkg\scripts\buildsystems\vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x64-windows-static

CMakeLists.txt

cmake_minimum_required(VERSION 3.8)
find_package(assimp CONFIG REQUIRED)
message("assimp: ${ASSIMP_LIBRARIES}")

Output:

assimp: C:/Users/arrudaj/vcpkg/installed/x64-windows-static/lib/assimp-vc140-mt.lib

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions