Skip to content

OpenCV,libjpeg-turbo build with set(VCPKG_BUILD_TYPE release) int triplet fails #5557

@rmbarbosa

Description

@rmbarbosa

When specifying
set(VCPKG_BUILD_TYPE release)
in a triplet file the build of opencv, or libjpegturbo fails.

libjpegturbo:
CMake Error at ports/libjpeg-turbo/portfile.cmake:57 (file):
file RENAME failed to rename

C:/..../packages/libjpeg-turbo_x64-windows-static-mt/debug/lib/jpeg-static.lib

to

C:/..../packages/libjpeg-turbo_x64-windows-static-mt/debug/lib/jpegd.lib

because: File exists

Opencv
CMake Error at ports/opencv/portfile.cmake:369 (file):
file failed to open for reading (No such file or directory):

C:/..../packages/opencv_x64-windows-static-mt/debug/share/opencv/OpenCVModules-debug.cmake

Call Stack (most recent call first):
scripts/ports.cmake:71 (include)

Error: Building package opencv:x64-windows-static-mt failed with: BUILD_FAILED

if we remove that set(VCPKG_BUILD_TYPE release) from the triplet it works.

thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    category:port-bugThe issue is with a library, which is something the port should already support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions