Open dominicap opened 5 years ago
Quick guess: Try to append ASM to the project's languages definition.
Your project()
call should look like this: project(auto_car LANGUAGES C CXX ASM)
@MrPointer Yup, that was it, thanks again!
@MrPointer I had this problem too, and fixed with your workaround. Thanks! But I think this is still a bug, because the ASM source belongs to the core, not to my project, and it should have been discovered when building the core lib.
@cebas You're probably right - I guess it has something to do with CMake's generator expressions, but I'm not entirely sure. I'm re-opening this until we have a concrete answer.
In case someone else is having the same issue with Arduino 1.8.11, I had to make it look like the following:
in CMakeLists.txt line 8:
project(${PROJECT_NAME} LANGUAGES C CXX ASM)
in cmake/Platform/Arduino.cmake starting line 1477:
function(find_sources VAR_NAME LIB_PATH RECURSE)
set(FILE_SEARCH_LIST
${LIB_PATH}/*.cpp
${LIB_PATH}/*.c
${LIB_PATH}/*.S
...
@dev10 I'm sorry but there's no such line in the file cmake/Platform/Arduino.cmake
.
In fact, this file only contains 40 lines.
You're probably confusing with the original arduino-cmake project, which this project continues since it's the only version of this project that had everything written in a single file (indeed Arduino.cmake
)
I had the same issue that was fixed by @dev10's suggestion from the Arduino.cmake file generated by the CLion Arduino plugin, just as a general tip/FYI for other users stumbling across this.
@dev10 that helped a lot, thanks
OS: macOS OS Version: 10.14.2 Platform: Arduino Platform SDK Version: [Arduino SDK version 1.8.8]
When trying to use the built in "pulseIn" function, I receive an undefined reference to `countPulseASM'
Build Output:
CMakeLists.txt:
Source file:
I believe this might be related to issue 364 in the Arduino-Makefile community and issue 23 from the original Arduino CMake Build System.
Help would be appreciated, thanks!