forked from altexdim/arduino-cmake
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include directories when setting up the library. Added Servo_RECURSE.
- Loading branch information
1 parent
3c7817f
commit dbd4fe3
Showing
1 changed file
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I'm not sure the inclusion of the /${INCLUDE_NAME} is the right call. For me this created errors in a situation where I had an Arduino library that didn't contain any header files matching the library name (bad style I know). Previously I was able to use
link_directories(${CMAKE_CURRENT_LIST_DIR}/libraries/myWeirdLibrary)
and it was included properly.This may cause other errors as well. Perhaps this is a cut-and-paste bug? The conditional checks for
EXISTS ${LIB_SEARCH_PATH}/${CMAKE_MATCH_1}
but then adds the (possibly nonexistent directory)
${LIB_SEARCH_PATH}/${INCLUDE_NAME}
Which is the pattern above, but I don't think that is right here.
FYI, there is a parsing error on the regex above. It won't find any #includes that have trailing whitespace or comments. I'll make a pull request for that at some point.