-
Notifications
You must be signed in to change notification settings - Fork 216
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
example build cmake warnings #93
Comments
Looking at the suggested policy details,
However, I'm not enough of a cmake guru to know what this means, or how to fix it 😢 |
Just by total guessing and some poking around, I found this makes all the warnings go away (though I don't know if it is a correct fix, or will work with older versions of cmake): diff --git a/cmake/Platform/Arduino.cmake b/cmake/Platform/Arduino.cmake
index 22ba5d8..d42a7ec 100644
--- a/cmake/Platform/Arduino.cmake
+++ b/cmake/Platform/Arduino.cmake
@@ -1001,7 +1001,7 @@ function(setup_arduino_library VAR_NAME BOARD_ID LIB_PATH COMPILE_FLAGS LINK_FLA
LINK_FLAGS "${ARDUINO_LINK_FLAGS} ${LINK_FLAGS}")
list(APPEND LIB_INCLUDES "-I\"${LIB_PATH}\" -I\"${LIB_PATH}/utility\"")
- target_link_libraries(${TARGET_LIB_NAME} ${BOARD_ID}_CORE ${LIB_TARGETS})
+ target_link_libraries(${TARGET_LIB_NAME} ${BOARD_ID}_CORE)
list(APPEND LIB_TARGETS ${TARGET_LIB_NAME})
endif() It does end the complaining, and all the examples seem to build fine as well. |
Here's a pull-request with this change if by chance I guessed correctly (please double-check): #94 |
Bump. Anyone ever figure out what's going on with these? |
Dunno, but I've been running with #94 applied and it seems to address the issue. But again, I'm not a CMAKE expert, just know enough to be dangerous 😄 |
Under Fedora 21 beta, using Fedora 20 toolchain (bugzilla 1134394), CMake 2.8.12 gives the following warnings:
The text was updated successfully, but these errors were encountered: