-
Notifications
You must be signed in to change notification settings - Fork 7.3k
[curve-coco] add new port #49137
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
[curve-coco] add new port #49137
Conversation
dg0yt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just another cursory review on GH.
ports/curve-coco/portfile.cmake
Outdated
| @@ -0,0 +1,30 @@ | |||
| # Header-only library | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| # Header-only library | |
| set(VCPKG_BUILD_TYPE release) # header-only library | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dg0yt
Thanks!
Fixed.
ports/curve-coco/portfile.cmake
Outdated
| vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}") | ||
|
|
||
| vcpkg_cmake_install() | ||
| vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/coco-${VERSION}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/coco-${VERSION}) | |
| vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/coco-${VERSION}" PACKAGE_NAME "coco") |
(Guessing package name from config path.)
ports/curve-coco/portfile.cmake
Outdated
| # remove empty lib and debug/lib directories (and duplicate files from debug/include) | ||
| file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| # remove empty lib and debug/lib directories (and duplicate files from debug/include) | |
| file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib") | |
| file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib") # from CMake config |
| # +-------------------------------------------------------------------------------------------------------+ | ||
|
|
||
| add_library(${PROJECT_NAME} STATIC "src/latch.cpp" "src/stray.cpp") | ||
| -add_library(cr::${PROJECT_NAME} ALIAS ${PROJECT_NAME}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need to be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The alias seems to be defined in PackageProject.cmake.
https://github.com/Curve/coco/blob/master/CMakeLists.txt#L61-L68
https://github.com/TheLartians/PackageProject.cmake/blob/master/CMakeLists.txt#L40-L41
find_packagecalls are REQUIRED, are satisfied byvcpkg.json's declared dependencies, or disabled with CMAKE_DISABLE_FIND_PACKAGE_Xxx.vcpkg.jsonmatches what upstream says.vcpkg.jsonmatches what upstream says../vcpkg x-add-version --alland committing the result.https://github.com/Curve/coco/
ereignis requires coco since 5.0.0.