-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[rxcpp] find_package(rxcpp "4.1.1" CONFIG REQUIRED)
fails because of wrong version info
#29339
Comments
@mediumrarez Please delete the local |
find_package(rxcpp VERSION 4.1.1)
fails because of wrong version infofind_package(rxcpp "4.1.1")
fails because of wrong version info
find_package(rxcpp "4.1.1")
fails because of wrong version infofind_package(rxcpp "4.1.1" CONFIG REQUIRED)
fails because of wrong version info
I deleted I'm running in manifest mode. Do I need to delete the global vcpkg cache too? |
You're missing the version specifier. I can reproduce with your sample
For completeness, here is the # CMakeList.txt : CMake project for usage, include source and define
# project specific logic here.
#
cmake_minimum_required (VERSION 3.8)
project(test)
# Add source to this project's executable.
add_executable (usage "usage.cpp" "usage.h")
# TODO: Add tests and install targets if needed.
find_package(rxcpp "4.1.1" CONFIG REQUIRED)
target_link_libraries(usage PRIVATE rxcpp) Here's the {
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg/master/scripts/vcpkg.schema.json",
"name": "demo",
"version-semver": "0.1.0",
"builtin-baseline": "ae826fceaa15109814d0531faeda424f43047822",
"dependencies": [
{
"name": "rxcpp",
"version>=": "4.1.1"
}
]
} |
Do you want to specify the port version? |
I didn't add a version note because the default is looking for the latest version via |
No, just the version of the actual library. The idea is so I can let the user choose if he wants to use vcpkg or not. If he doesn't want to use vcpkg, |
@mediumrarez At present, vcpkg only provides the latest port version. You can achieve it through |
Ok, I think I found the real issue, which is that upstream hasn't been updating their |
@mediumrarez Regarding the last update upstream that happened nine months ago, I think we can only deal with it through patches. 🤔 |
@FrankXie05 Yes, I think so too. It doesn't look too hopeful. |
Not a vcpkg bug IMO.
If upstream doesn't suppport versions in |
@dg0yt The idea is to let the user choose whether or not to use vcpkg. If vcpkg isn't used, then |
There is nothing wrong with choice. However, I don't think this is a strong argument here:
|
Hmm... I guess you're right. Closing. |
Library name:
rxcpp
New version number:
4.1.1
find_package(rxcpp "4.1.1" CONFIG REQUIRED)
fails with the following error.It seems that
rxcppConfigVersion.cmake
hasn't been updated to match the new package version.The text was updated successfully, but these errors were encountered: