-
Notifications
You must be signed in to change notification settings - Fork 2
Jetty support: bump to 4.0.0, fix package names #11
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
Merged
Merged
Changes from 2 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
57cf76f
Jetty support: bump to 4.0.0, fix package names
scpeters 9f1d8d8
Add option VENDOR_FROM_LIB_VCS_REF
scpeters 5a85953
remove unused cmake config file
scpeters e96c32d
use lowercase to fix linter complaint
scpeters c40fe26
Add dependency on cli11
scpeters 798269e
4.0.0~pre1
scpeters 39b1d72
Use vendored version of CLI11
azeey File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR) | ||
|
||
find_package(@LIB_NAME@@LIB_VER_MAJOR@ ${@LIB_NAME@_FIND_VERSION} REQUIRED COMPONENTS ${@LIB_NAME@_FIND_COMPONENTS}) | ||
find_package(@LIB_NAME@ ${@LIB_NAME@_FIND_VERSION} REQUIRED COMPONENTS ${@LIB_NAME@_FIND_COMPONENTS}) | ||
|
||
# Set up the core library and add it to the list of all components | ||
add_library(@LIB_NAME_COMP_PREFIX@::@LIB_NAME_COMP_PREFIX@ ALIAS @LIB_NAME@@LIB_VER_MAJOR@::@LIB_NAME@@LIB_VER_MAJOR@) | ||
add_library(@LIB_NAME_COMP_PREFIX@::core ALIAS @LIB_NAME@@LIB_VER_MAJOR@::@LIB_NAME@@LIB_VER_MAJOR@) | ||
add_library(@LIB_NAME_COMP_PREFIX@::@LIB_NAME_COMP_PREFIX@ ALIAS @LIB_NAME@::@LIB_NAME@) | ||
add_library(@LIB_NAME_COMP_PREFIX@::core ALIAS @LIB_NAME@::@LIB_NAME@) | ||
|
||
# Retrieve the list of components | ||
get_target_property(components @LIB_NAME@@LIB_VER_MAJOR@::requested INTERFACE_LINK_LIBRARIES) | ||
get_target_property(components @LIB_NAME@::requested INTERFACE_LINK_LIBRARIES) | ||
|
||
foreach(component ${components}) | ||
# Skip the core library | ||
if(${component} STREQUAL @LIB_NAME@@LIB_VER_MAJOR@::@LIB_NAME@@LIB_VER_MAJOR@) | ||
if(${component} STREQUAL @LIB_NAME@::@LIB_NAME@) | ||
continue() | ||
endif() | ||
|
||
# Change "gz-libN::gz-libN-component" to "component" | ||
string(REGEX REPLACE "@LIB_NAME@@LIB_VER_MAJOR@::@LIB_NAME@@LIB_VER_MAJOR@-" "" component_name ${component}) | ||
string(REGEX REPLACE "@LIB_NAME@::@LIB_NAME@-" "" component_name ${component}) | ||
add_library(@LIB_NAME_COMP_PREFIX@::${component_name} ALIAS ${component}) | ||
endforeach() | ||
|
||
# Add a root gz-lib alias | ||
add_library(@LIB_NAME_COMP_PREFIX@ ALIAS @LIB_NAME@@LIB_VER_MAJOR@::@LIB_NAME@@LIB_VER_MAJOR@) | ||
add_library(@LIB_NAME_COMP_PREFIX@ ALIAS @LIB_NAME@::@LIB_NAME@) |
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.