Skip to content

add tclap interface library #12350

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 2 commits into from
Nov 5, 2023
Merged

add tclap interface library #12350

merged 2 commits into from
Nov 5, 2023

Conversation

maloel
Copy link
Contributor

@maloel maloel commented Nov 2, 2023

Tclap is our command-line processing library.
We have to manually add its include directory in all projects.

Instead, it is now an interface library so you can just say you depend on it in target_link_libraries.

Tracked on [LRS-943]

@maloel maloel requested a review from OhadMeir November 2, 2023 16:38
@@ -0,0 +1,8 @@
# License: Apache 2.0. See LICENSE file in root directory.
# Copyright(c) 2023 Intel Corporation. All Rights Reserved.
cmake_minimum_required( VERSION 3.10 )
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we limit the minimum version?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CMake makes you put a minimum-required in the beginning. Maybe not for everything, but I recall it complaining.
Anyway, U18 is our minimum, so 3.10.

What's most interesting to me is that the static_analysis hasn't complained...!
And when I check it, it says:
The test PASSED, current CMake version is VERSION 3.10.0 and it is not higher than VERSION 3.8.0

LOL?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed it, let's see what happens.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks OK now

Copy link
Contributor

@OhadMeir OhadMeir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@maloel maloel merged commit fd45b37 into IntelRealSense:development Nov 5, 2023
@maloel maloel deleted the tclap branch November 5, 2023 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants