Linking against vcpkg feature library #40148
-
I am using tiff library in my Project (Visual Studio, CMake, vcpkg in manifest mode). We are using the cxx (C++ version of tiff library) feature also. my vcpkg.json file contains the following "dependencies" to incorporate the tiff library.
The 'usage' file in vcpkg specifies that tiff is to be used like the following
In the project the package is found by giving the following command in the CMake file
Then it is linked by the following command
The project build gives me error related to tiffxx linking. May I know the right wat to link against 'tiffxx' through CMake? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There should be exported CMake config (in the future). It is not yet installed by the port because it still lacks an exported |
Beta Was this translation helpful? Give feedback.
TIFF::TIFF
is the widely used target available via the Find module but not the C++ binding. You might use plainfind_library
for[lib]tiffxx
. You will probably need to setup an imported target which also linksTIFF::TIFF
.There should be exported CMake config (in the future). It is not yet installed by the port because it still lacks an exported
TIFF::TIFF
. Cf. https://gitlab.com/libtiff/libtiff/-/merge_requests/496.