Skip to content

Commit

Permalink
updated max. cmake version to 3.24
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Aug 5, 2022
1 parent 07c76a9 commit f4d71ef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Policies <= CMP0128 default to NEW
# 3.20 - because is used NEWLINE_STYLE in the file(GENERATE) command
# 3.22 - because is used CMP0127: cmake_dependent_option() supports full Condition Syntax
cmake_minimum_required(VERSION 3.22...3.23 FATAL_ERROR)
cmake_minimum_required(VERSION 3.22...3.24 FATAL_ERROR)

list(APPEND CMAKE_MODULE_PATH
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/CommonModules"
Expand Down
4 changes: 2 additions & 2 deletions docs/building/hello-world.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,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.20...3.23 FATAL_ERROR)\n
{`cmake_minimum_required(VERSION VERSION 3.20...3.24 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 @@ -233,7 +233,7 @@ target_link_libraries(HelloWorld
</TabItem>
<TabItem value={bash} label={bash_label}>
<CodeBlock className='language-cmake'>
{`cmake_minimum_required(VERSION VERSION 3.20...3.23 FATAL_ERROR)\n
{`cmake_minimum_required(VERSION VERSION 3.20...3.24 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
4 changes: 2 additions & 2 deletions docs/building/migrations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ Create `CMakeLists.txt` file with the following content. I leave the comments in
<Tabs groupId={shell}>
<TabItem value={pwsh} label={pwsh_label}>
<CodeBlock className='language-cmake'>
{`cmake_minimum_required(VERSION VERSION 3.20...3.23 FATAL_ERROR)\n
{`cmake_minimum_required(VERSION VERSION 3.20...3.24 FATAL_ERROR)\n
# Specify the C++ standard
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
Expand Down Expand Up @@ -449,7 +449,7 @@ target_link_libraries(\${Tom_target}
</TabItem>
<TabItem value={bash} label={bash_label}>
<CodeBlock className='language-cmake'>
{`cmake_minimum_required(VERSION VERSION 3.20...3.23 FATAL_ERROR)\n
{`cmake_minimum_required(VERSION VERSION 3.20...3.24 FATAL_ERROR)\n
# Specify the C++ standard
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
Expand Down

0 comments on commit f4d71ef

Please sign in to comment.