Fix some CMake documentation typos (#616)

The quick start instructions for CMake mention the "master"
git branch which has been replaced by "main" in the current
repo.

The main CMakeLists.txt documents how to integrate a
custom port. Fix a typo in the suggested CMake code.
This commit is contained in:
David J. Fiddes 2023-01-23 17:16:24 +00:00 committed by GitHub
parent 78319fd17e
commit 260a37c082
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -217,7 +217,7 @@ elseif((FREERTOS_PORT STREQUAL "A_CUSTOM_PORT") AND (NOT TARGET freertos_kernel_
" target_include_directories(freertos_kernel_port\n" " target_include_directories(freertos_kernel_port\n"
" PUBLIC\n" " PUBLIC\n"
" .)\n" " .)\n"
" taget_link_libraries(freertos_kernel_port\n" " target_link_libraries(freertos_kernel_port\n"
" PRIVATE\n" " PRIVATE\n"
" freertos_kernel)") " freertos_kernel)")
endif() endif()

View file

@ -19,7 +19,7 @@ Add the following into your project's main or a subdirectory's `CMakeLists.txt`:
```cmake ```cmake
FetchContent_Declare( freertos_kernel FetchContent_Declare( freertos_kernel
GIT_REPOSITORY https://github.com/FreeRTOS/FreeRTOS-Kernel.git GIT_REPOSITORY https://github.com/FreeRTOS/FreeRTOS-Kernel.git
GIT_TAG master #Note: Best practice to use specific git-hash or tagged version GIT_TAG main #Note: Best practice to use specific git-hash or tagged version
) )
``` ```