diff --git a/CMakeLists.txt b/CMakeLists.txt index 05baf6c7..653f2d1c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.0.0 FATAL_ERROR) +cmake_minimum_required(VERSION 3.5 FATAL_ERROR) # Set up the project project(threadx @@ -69,4 +69,4 @@ set(CPACK_SOURCE_IGNORE_FILES ".*~$" ) set(CPACK_VERBATIM_VARIABLES YES) -include(CPack) \ No newline at end of file +include(CPack) diff --git a/README.md b/README.md index b3c3e456..04cbd8b8 100644 --- a/README.md +++ b/README.md @@ -197,7 +197,7 @@ Instruction for building the ThreadX as static library using Arm GNU Toolchain a An example of building the library for Cortex-M4: ```bash - $ cmake -Bbuild -GNinja -DCMAKE_TOOLCHAIN_FILE=cmake/cortex_m4.cmake . + $ cmake -Bbuild -GNinja --toolchain cmake/cortex_m4.cmake . $ cmake --build ./build ```