Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions FindSwiftlets.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
include("GenericFindDependency")
option(swiftlets_ENABLE_TESTS "" OFF)
GenericFindDependency(
TARGET swiftlets
SOURCE_DIR swiftlets
Copy link
Contributor

Choose a reason for hiding this comment

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

This isn't strictly speaking required - GenericFindDependency searches a load of paths based on the target name to look for the submodule. It won't hurt to leave it there, it's just not required.

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 left this here as it seems to be used by quite many other modules also.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, it's really only needed when the source code is in a directory with a different name from the target name, or when the source code is in a subdirectory in the submodule (like gnss-converters or libsbp). In this case the names as the same though

SYSTEM_INCLUDES
)