-
Notifications
You must be signed in to change notification settings - Fork 18
Feat:Termcolor #221
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: main
Are you sure you want to change the base?
Feat:Termcolor #221
Changes from all commits
ddd77d9
4d2ebab
60592c4
8153a45
ee2a590
08387f8
d4ed7c5
74f63f1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
if(TARGET termcolor::termcolor) | ||
return() | ||
endif() | ||
|
||
add_library(termcolor INTERFACE) | ||
add_library(termcolor::termcolor ALIAS termcolor) | ||
|
||
target_include_directories(termcolor INTERFACE | ||
${CMAKE_CURRENT_LIST_DIR}/../vendor/termcolor/include) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(TermColor | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is this for? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Mr. @jviotti, as you suggested, termcolor has its own CMake file, and I need to create this file to use it. I researched and came up with this approach. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See https://github.com/sourcemeta/jsonschema/pull/221/files#r1941593287. I think you are doing it the hard way |
||
REQUIRED_VARS CMAKE_CURRENT_LIST_DIR) |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This seems like an unrelated change? |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's mask all of these files! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ohhk sir , reading the docs. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
This is overly complicated and not following the same conventions we have in other
Find*
files. Plus it's using the_FOUND
suffixes that CMake actually expects, relying on targets instead. This works for me and it is pretty much exactly the same as with other 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.
Yes changing to this way.