Skip to content

Commit f144908

Browse files
committed
docs: update library linking for minimal README example
1 parent 8373de0 commit f144908

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,13 @@ on how to make Conanfiles.
124124
Create a new `CMakeLists.txt` in your project dir:
125125
```cmake
126126
cmake_minimum_required(VERSION 3.30)
127-
project(my-samv71-project CXX)
127+
project(my-samv71-project LANGUAGES C CXX)
128128
129129
find_package(SAMV71-DFP COMPONENTS SAMV71Q21B REQUIRED)
130130
131131
add_executable(my-samv71-project src/main.cpp)
132132
133-
target_link_libraries(my-samv71-project PRIVATE samv71-dfp::SAMV71Q21B::Startup samv71-dfp::SAMV71Q21B::Linker::Flash)
133+
target_link_libraries(my-samv71-project PRIVATE samv71-dfp::Core samv71-dfp::SAMV71Q21B::Startup samv71-dfp::SAMV71Q21B::Linker::Flash)
134134
```
135135

136136
**NOTE**: Always link a startup file and linker script in the final binary

0 commit comments

Comments
 (0)