cmake updated max. version to 3.29

This commit is contained in:
silverqx
2024-03-26 19:28:33 +01:00
parent 2207122414
commit e9c905509f
3 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -227,7 +227,7 @@ Create `CMakeLists.txt` file with the following content.
<Tabs groupId={shell}>
<TabItem value={pwsh} label={pwsh_label}>
<CodeBlock className='language-cmake'>
{`cmake_minimum_required(VERSION VERSION 3.22...3.28 FATAL_ERROR)\n
{`cmake_minimum_required(VERSION VERSION 3.22...3.29 FATAL_ERROR)\n
project(HelloWorld LANGUAGES CXX)\n
# build tree
list(APPEND CMAKE_PREFIX_PATH "${convertToCmakeEnvVariable(pwsh, applicationFolderPath(pwsh))}/TinyORM/TinyORM-builds-cmake/build-debug")\n
@@ -249,7 +249,7 @@ target_link_libraries(HelloWorld
</TabItem>
<TabItem value={bash} label={bash_label}>
<CodeBlock className='language-cmake'>
{`cmake_minimum_required(VERSION VERSION 3.22...3.28 FATAL_ERROR)\n
{`cmake_minimum_required(VERSION VERSION 3.22...3.29 FATAL_ERROR)\n
project(HelloWorld LANGUAGES CXX)\n
# build tree
list(APPEND CMAKE_PREFIX_PATH "${convertToCmakeEnvVariable(bash, applicationFolderPath(bash))}/TinyORM/TinyORM-builds-cmake/build-debug")\n
@@ -297,7 +297,7 @@ You can use the [`FetchContent`](https://cmake.org/cmake/help/latest/module/Fetc
<Tabs groupId={shell}>
<TabItem value={pwsh} label={pwsh_label}>
<CodeBlock className='language-cmake'>
{`cmake_minimum_required(VERSION VERSION 3.22...3.28 FATAL_ERROR)\n
{`cmake_minimum_required(VERSION VERSION 3.22...3.29 FATAL_ERROR)\n
project(HelloWorld LANGUAGES CXX)\n
# FetchContent method
include(FetchContent)
@@ -327,7 +327,7 @@ target_link_libraries(HelloWorld
</TabItem>
<TabItem value={bash} label={bash_label}>
<CodeBlock className='language-cmake'>
{`cmake_minimum_required(VERSION VERSION 3.22...3.28 FATAL_ERROR)\n
{`cmake_minimum_required(VERSION VERSION 3.22...3.29 FATAL_ERROR)\n
project(HelloWorld LANGUAGES CXX)\n
# FetchContent method
include(FetchContent)
+1 -1
View File
@@ -402,7 +402,7 @@ cd tom`}
Create `CMakeLists.txt` file with the following content. I leave the comments in the `CMakeLists.txt` file because it's not as simple as the `Hello world` example; to make it clear what's going on.
```cmake title='CMakeLists.txt'
cmake_minimum_required(VERSION VERSION 3.22...3.28 FATAL_ERROR)
cmake_minimum_required(VERSION VERSION 3.22...3.29 FATAL_ERROR)
# Specify the C++ standard
set(CMAKE_CXX_STANDARD 20)