-
Notifications
You must be signed in to change notification settings - Fork 7.3k
[libe57] Update to 1.1.337 #49656
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
base: master
Are you sure you want to change the base?
[libe57] Update to 1.1.337 #49656
Conversation
b297dda to
5b45f02
Compare
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.
Cursory review.
ports/libe57/xercesc.patch
Outdated
| -elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Windows") | ||
| - add_definitions(-DWINDOWS) | ||
| -endif() | ||
| +find_package(XercesC REQUIRED) |
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.
| +find_package(XercesC REQUIRED) | |
| +find_package(XercesC REQUIRED) | |
| +set(XML_LIBRARIES XercesC::XercesC) |
and get rid of the other changes for the XML_LIBRARIES.
In any case, this needs a find_dependency(XercesC) in the installed cmake config.
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.
Tried it now and added a small test port. But how I can run the test port locally? Didn't found a parameter for vcpkg ci to tell him, I don't want build the whole repo.
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.
Use --overlay-ports scripts/test_ports to make the test ports available regular vcpkg install.
ports/libe57/portfile.cmake
Outdated
| # There is no license file in the repo yet, except a link to http://libe57.org/license.html" | ||
| set(VCPKG_POLICY_SKIP_COPYRIGHT_CHECK enabled) |
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 reference to the license URL can be written to copyright.
vicroms
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.
Please apply dg0yt's suggestions
2044f47 to
603e271
Compare
| ENDIF() | ||
| # FIXME: This probably should be set for both cases | ||
| - SET(E57RefImpl_LIBRARIES optimized ${E57RefImpl_LIBRARY_RELEASE} debug ${E57RefImpl_LIBRARY_DEBUG}) | ||
| + SET(E57RefImpl_LIBRARIES optimized ${E57RefImpl_LIBRARY_RELEASE} ${E57RefImpl_DEPENDENCIES} debug ${E57RefImpl_LIBRARY_DEBUG} ${E57RefImpl_DEPENDENCIES}) |
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.
optimized/debug only work for the next item. So you just append once, literally at the end of the E57RefImpl_LIBRARIES block (which is a poor select_library_configurations):
list(APPEND E57RefImpl_LIBRARIES
Boost::filesystem
Boost::system
XercesC::XercesC
)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.
Possible, this legacy syntax has long been removed from our projects, so I've slowly forgotten the details about it 😅
| -set(XML_LIBRARIES ${Xerces_LIBRARY}) | ||
| -set(XML_INCLUDE_DIRS ${Xerces_INCLUDE_DIR}) | ||
| +set(XML_LIBRARIES XercesC::XercesC) | ||
| +set(XML_INCLUDE_DIRS) |
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.
Nitpick, CMake quirk: This command unsets XML_INCLUDE_DIRS in the current scope. To really set an empty value and to hide the parent scope:
| +set(XML_INCLUDE_DIRS) | |
| +set(XML_INCLUDE_DIRS "") |
./vcpkg x-add-version --alland committing the result.Notes:
copyright, but I think this makes no senseXercesC::XercesCinstead of patching the MacOS (CoreFoundation) and Linux (ICU) dependencies manually