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

Commit dce9d27

Browse files
committed
Removed LANGUAGES option from cmake project call in all examples.
Updated the example in the 'Usage' section inside 'Readme' as well.
1 parent a2343c5 commit dce9d27

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ A very basic example of how **Arduino-CMake** can be used is listed below:
3838
```cmake
3939
# Define CMake's minimum version (must-do) and the project's name and supported languages
4040
cmake_minimum_required(VERSION 3.8.2)
41-
project(Hello_World LANGUAGES C CXX ASM)
41+
project(Hello_World)
4242
4343
# Call a framework utility function, passing it information about the hardware board that will be used - This function returns a structure known only to the framework
4444
get_board_id(board_id nano atmega328)

examples/arduino-library/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
cmake_minimum_required(VERSION 3.8)
1+
cmake_minimum_required(VERSION 3.8.2)
22

3-
project(Arduino_Library LANGUAGES C CXX ASM)
3+
project(Arduino_Library)
44
get_board_id(board_id nano atmega328)
55

66
add_arduino_executable(Arduino_Library ${board_id} test.cpp)

examples/blink-example/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
cmake_minimum_required(VERSION 3.8)
1+
cmake_minimum_required(VERSION 3.8.2)
22

3-
project(Blink_Example LANGUAGES C CXX ASM)
3+
project(Blink_Example)
44

55
get_board_id(board_id nano atmega328)
66

examples/hello-world/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
cmake_minimum_required(VERSION 3.8)
1+
cmake_minimum_required(VERSION 3.8.2)
22

3-
project(Hello_World LANGUAGES C CXX ASM)
3+
project(Hello_World)
44
get_board_id(board_id nano atmega328)
55

66
add_arduino_executable(Hello_World ${board_id} helloWorld.cpp)

examples/servo-knob-example/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
cmake_minimum_required(VERSION 3.8)
1+
cmake_minimum_required(VERSION 3.8.2)
22

3-
project(Knob_Example LANGUAGES C CXX ASM)
3+
project(Knob_Example)
44

55
get_board_id(board_id nano atmega328)
66

examples/sketch/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
cmake_minimum_required(VERSION 3.8)
1+
cmake_minimum_required(VERSION 3.8.2)
22

3-
project(Sketch LANGUAGES C CXX ASM)
3+
project(Sketch)
44
get_board_id(board_id nano atmega328)
55

66
add_arduino_executable(Sketch ${board_id})

0 commit comments

Comments
 (0)