Replies: 5 comments 9 replies
-
Are you actively avoiding naming a particular vcpkg port and showing the full CMake call stack? Then it might be hard to help. |
Beta Was this translation helpful? Give feedback.
-
Something like |
Beta Was this translation helpful? Give feedback.
-
It seems like the answer is that something got fixed in cmake 3.23.0 (it is still present in 3.22.6), possibly in the work to add CMAKE_IGNORE_PREFIX_PATH. |
Beta Was this translation helpful? Give feedback.
-
There should be only one config file for both debug and release and it should be in |
Beta Was this translation helpful? Give feedback.
-
I suggest you run CMake with |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm running into a problem where cmake is finding the debug version of a config file before the non-debug. I've set
CMAKE_BUILD_TYPE
to Release so that vcpkg doesn't put the debug folder first inCMAKE_PREFIX_PATH
, and yet it keeps finding debug first.Running cmake configure with
--debug-find
gives me the following (snippets for brevity):Why is cmake looking in
debug
first when it's second in theCMAKE_PREFIX_PATH
?Yes, I realise the location of the config is a little odd, but I can't change that (upstream dependency)
Stack traces point to
vcpkg/scripts/buildsystems/vcpkg.cmake:859 (_find_package)
but I can't find the definition of_find_package
in vcpkg, vcpkg-tool or cmake source. Where is it defined?Beta Was this translation helpful? Give feedback.
All reactions