Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding CMake version support ranges #14

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 1_single_executable/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#
# See https://swift.org/LICENSE.txt for license information

cmake_minimum_required(VERSION 3.22)
cmake_minimum_required(VERSION 3.22...3.29)

project(hello LANGUAGES Swift)

Expand Down
2 changes: 1 addition & 1 deletion 2_executable_library/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#
# See https://swift.org/LICENSE.txt for license information

cmake_minimum_required(VERSION 3.22)
cmake_minimum_required(VERSION 3.22...3.29)
project(Project2 LANGUAGES Swift)

add_subdirectory("lib/")
Expand Down
2 changes: 1 addition & 1 deletion 3_bidirectional_cxx_interop/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#
# See https://swift.org/LICENSE.txt for license information

cmake_minimum_required(VERSION 3.26)
cmake_minimum_required(VERSION 3.26...3.29)

# Project PingPong: Bouncing control flow between Swift and C++ like a ping pong
# ball.
Expand Down
6 changes: 1 addition & 5 deletions 4_swift_macros/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@
#
# See https://swift.org/LICENSE.txt for license information

cmake_minimum_required(VERSION 3.22)

if(POLICY CMP0157)
cmake_policy(SET CMP0157 NEW)
endif()
cmake_minimum_required(VERSION 3.22...3.29)

project(StringifyMacroExample
LANGUAGES Swift)
Expand Down
5 changes: 1 addition & 4 deletions 4_swift_macros/StringifyMacro/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
#
# See https://swift.org/LICENSE.txt for license information

cmake_minimum_required(VERSION 3.22)
if(POLICY CMP0157)
cmake_policy(SET CMP0157 NEW)
endif()
cmake_minimum_required(VERSION 3.22...3.29)

project(StringifyMacro
LANGUAGES Swift)
Expand Down