Skip to content

Commit

Permalink
upgraded to max. CMake v3.30
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Jul 3, 2024
1 parent c6e5f08 commit 02e060d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# currently can't use the target_sources(FILE_SET) 😔
# Minimum version must always correspond to the version that is in the latest Ubuntu LTS
# TODO use LINKER_TYPE target property when min. version will be CMake v3.29 silverqx
cmake_minimum_required(VERSION 3.22...3.29 FATAL_ERROR)
cmake_minimum_required(VERSION 3.22...3.30 FATAL_ERROR)

list(APPEND CMAKE_MODULE_PATH
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/CommonModules"
Expand Down
8 changes: 4 additions & 4 deletions docs/building/hello-world.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.29 FATAL_ERROR)\n
{`cmake_minimum_required(VERSION VERSION 3.22...3.30 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
Expand All @@ -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.29 FATAL_ERROR)\n
{`cmake_minimum_required(VERSION VERSION 3.22...3.30 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
Expand Down Expand Up @@ -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.29 FATAL_ERROR)\n
{`cmake_minimum_required(VERSION VERSION 3.22...3.30 FATAL_ERROR)\n
project(HelloWorld LANGUAGES CXX)\n
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
Expand Down Expand Up @@ -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.29 FATAL_ERROR)\n
{`cmake_minimum_required(VERSION VERSION 3.22...3.30 FATAL_ERROR)\n
project(HelloWorld LANGUAGES CXX)\n
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
Expand Down
2 changes: 1 addition & 1 deletion docs/building/migrations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,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.29 FATAL_ERROR)
cmake_minimum_required(VERSION VERSION 3.22...3.30 FATAL_ERROR)
# Specify the C++ standard
set(CMAKE_CXX_STANDARD 20)
Expand Down

0 comments on commit 02e060d

Please sign in to comment.