Skip to content

add tclap interface library - #12350

Merged
maloel merged 2 commits into
realsenseai:developmentfrom
maloel:tclap
Nov 5, 2023
Merged

add tclap interface library#12350
maloel merged 2 commits into
realsenseai:developmentfrom
maloel:tclap

Conversation

@maloel

@maloel maloel commented Nov 2, 2023

Copy link
Copy Markdown
Contributor

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
Comment thread third-party/tclap/CMakeLists.txt Outdated
@@ -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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

@OhadMeir OhadMeir left a comment

Copy link
Copy Markdown
Contributor

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 realsenseai: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