-
Notifications
You must be signed in to change notification settings - Fork 0
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
Starling third party fix #65
Conversation
f861c13
to
fc47377
Compare
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.
One request to fix faulty search paths, other than that looks good
GenericFindDependency.cmake
Outdated
@@ -259,9 +263,11 @@ macro(create_source_search_paths) | |||
list(APPEND x_SOURCE_SEARCH_PATHS "${PROJECT_SOURCE_DIR}/${x_SOURCE_DIR}") |
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.
I think the real issue here is that this line shouldn't be here, neither should the one 2 lines above. A long time ago we agreed that all submodules will live under third_party
, these modules shouldn't be searching any part that doesn't have third_party
in it
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.
Seems like a good idea to remove the old system. I've since rolled back the changes and used the suggested approach.
645b78f
to
c9225eb
Compare
@@ -2,7 +2,7 @@ include("GenericFindDependency") | |||
option(nanopb_BUILD_GENERATOR "" OFF) | |||
GenericFindDependency( | |||
TARGET protobuf-nanopb | |||
SOURCE_DIR "third_party/nanopb" | |||
SOURCE_DIR "nanopb" |
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 was needed to be updated since one of the deleted paths was working with the original third_party/nanopd
.
NOTE these changes are currently being used by the https://github.com/swift-nav/swiftlets/pull/880 PR. |
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.
LGTM!
Background
There were two issues during the restructuring of our code base.
The first change that needed to be done was fix the
create_source_search_paths
function. After adding thestarling
folder in the root directory,FindStarling.cmake
script's usage ofSOURCE_DIR
meant that the${CMAKE_CURRENT_SOURCE_DIR}/${x_SOURCE_DIR}
folder was choose as the folder for which it would calladd_subdirectory
on to introduce the starling repo's cmake targets.The second issue was simply that some starling libraries weren't being flagged as exportable by the subdirectory, which meant that if we were to use
-DTHIRD_PARTY_INCLUDES_AS_SYSTEM=false
cmake cache variable, it would fail static analysis asclang-tidy
would complain about eigen values.