Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Commit be73811

Browse files
committed
Removed empty-sources provided to add_arduino_executable in various places in code.
Signed-off-by: Timor Gruber <timor.gruber@gmail.com>
1 parent 0831a0d commit be73811

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cmake/Platform/Targets/ArduinoExampleTarget.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function(add_arduino_example _target_name _board_id _example_name)
1414
find_arduino_example_sources("${ARDUINO_SDK_EXAMPLES_PATH}"
1515
${arduino_compliant_example_name} example_sketches ${ARGN})
1616
# First create the target (Without sources), then add sketches as converted sources
17-
add_arduino_executable(${_target_name} ${_board_id} "")
17+
add_arduino_executable(${_target_name} ${_board_id})
1818
target_sketches(${_target_name} ${_board_id} "${example_sketches}")
1919

2020
endfunction()
@@ -44,7 +44,7 @@ function(add_arduino_library_example _target_name _board_id
4444

4545
find_arduino_library_example_sources("${ARDUINO_SDK_LIBRARIES_PATH}/${arduino_compliant_library_name}"
4646
${arduino_compliant_example_name} example_sketches ${ARGN})
47-
add_arduino_executable(${_target_name} ${_board_id} "")
47+
add_arduino_executable(${_target_name} ${_board_id})
4848
target_sketches(${_target_name} ${_board_id} "${example_sketches}")
4949
link_arduino_library(${_target_name} ${_library_target_name} ${_board_id})
5050

examples/sketch/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ cmake_minimum_required(VERSION 3.8)
33
project(Sketch LANGUAGES C CXX ASM)
44
get_board_id(board_id nano atmega328)
55

6-
add_arduino_executable(Sketch ${board_id} "")
6+
add_arduino_executable(Sketch ${board_id})
77
target_sketches(Sketch ${board_id} sketch.ino)

0 commit comments

Comments
 (0)