cpputils-cmake
cpputils-cmake copied to clipboard
Can not process `add_executable(${PROJECT_NAME}.elf ${SOURCE_FILES})`
It seems that the .elf was discarded.
associated code:
add_executable(${PROJECT_NAME}.elf ${SOURCE_FILES} ${MBED_OBJECTS})
target_link_libraries(${PROJECT_NAME}.elf ${MBED_LIBS})
add_custom_command(TARGET ${PROJECT_NAME}.elf
POST_BUILD
COMMAND ${ARM_NONE_EABI_OBJCOPY} -O binary ${PROJECT_NAME}.elf ${PROJECT_NAME}.bin
COMMAND ${ARM_NONE_EABI_OBJCOPY} -O ihex ${PROJECT_NAME}.elf ${PROJECT_NAME}.hex
COMMAND ${ARM_NONE_EABI_SIZE} ${PROJECT_NAME}.elf
)
log:
cppcm-reload-all called
cppcm-get-dirs called
cppcm-query-var-from-last-matched-line called [2 times]
(cppcm-get-dirs)=(t nil /Users/KAM/Workspace/LCD1602A/build/ /Users/KAM/Workspace/LCD1602A) [2 times]
cppcm-scan-info-from-cmake called => /Users/KAM/Workspace/LCD1602A /Users/KAM/Workspace/LCD1602A /Users/KAM/Workspace/LCD1602A/build/
CMakeLists.txt=/Users/KAM/Workspace/LCD1602A/CMakeLists.txt
possible-targets=((add_executable ${PROJECT_NAME}.elf))
cppcm--query-var-from-lines called
Failed to get some information from scanning. Continue anyway.
cppcm-include-dirs=nil
Then I replace ${PROJECT_NAME}.elf by ${BIN} set(BIN "${PROJECT_NAME}.elf"), also fail with log:
cppcm--query-var-from-lines called
cppcm-handle-one-executable called => /Users/KAM/Workspace/LCD1602A /Users/KAM/Workspace/LCD1602A/build/ /Users/KAM/Workspace/LCD1602A (add_executable nil)
cppcm--guess-dir-containing-cmakelists-dot-txt called => /Users/KAM/Workspace/LCD1602A
cppcm--guess-dir-containing-cmakelists-dot-txt: dir=/Users/KAM/Workspace/LCD1602A
flag-make=/Users/KAM/Workspace/LCD1602A/build/CMakeFiles/.dir/flags.make
cppcm-proj-max-dir-level called => /Users/KAM/Workspace/LCD1602A/build/ (add_executable nil)
cppcm-guess-exe-full-path: type=add_executable
cppcm-guess-exe-full-path: tgt=(add_executable nil)
cppcm-guess-exe-full-path: exe-dir=/Users/KAM/Workspace/LCD1602A/build/
cppcm-guess-exe-full-path: cppcm-cmake-target-regex=^ *[^#]* *\(add_executable\|add_library\) *( *\([^ ]+\)
cppcm-guess-exe-full-path: base-exe-name=/Users/KAM/Workspace/LCD1602A/build/lib
exe-full-path=/Users/KAM/Workspace/LCD1602A/build/
cppcm-get-exe-dir-path-current-buffer called => /Users/KAM/Workspace/LCD1602A/build/CMakeFiles/.dir/flags.make /Users/KAM/Workspace/LCD1602A/cpp-flags
cppcm-query-match-line called => /Users/KAM/Workspace/LCD1602A/build/CMakeFiles/.dir/flags.make *\(CX\{0,2\}_FLAGS\) *= *\(.*\)
Failed to get some information from scanning. Continue anyway.
cppcm-include-dirs=nil