Skip to content

Commit

Permalink
build: minimum required CMake version bumped to 3.25
Browse files Browse the repository at this point in the history
Resolves #597
  • Loading branch information
mpusz committed Jul 16, 2024
1 parent 2e1e4f1 commit 2411a7e
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

cmake_minimum_required(VERSION 3.23)
cmake_minimum_required(VERSION 3.25)
project(mp-units-dev LANGUAGES CXX)

list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

cmake_minimum_required(VERSION 3.23)
cmake_minimum_required(VERSION 3.25)
project(mp-units VERSION 2.3.0 LANGUAGES CXX)

set(projectPrefix MP_UNITS_)
Expand Down
2 changes: 2 additions & 0 deletions src/cmake/AddMPUnitsModule.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

cmake_minimum_required(VERSION 3.25)

include_guard(GLOBAL)

function(validate_unparsed module prefix)
Expand Down
2 changes: 2 additions & 0 deletions src/cmake/CheckCXXFeatureSupported.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ For example:
check_cxx_feature_supported("__cpp_constexpr >= 202211L" STATIC_CONSTEXPR_VARS_IN_CONSTEXPR_FUNCTIONS)
#]=======================================================================]

cmake_minimum_required(VERSION 3.25)

include_guard(GLOBAL)

macro(CHECK_CXX_FEATURE_SUPPORTED CONDITION VARIABLE)
Expand Down
2 changes: 1 addition & 1 deletion src/cmake/CheckLibcxxInUse.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

cmake_minimum_required(VERSION 3.15)
cmake_minimum_required(VERSION 3.25)

function(check_libcxx_in_use variable)
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
Expand Down
2 changes: 2 additions & 0 deletions src/cmake/MPUnitsContracts.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

cmake_minimum_required(VERSION 3.25)

add_library(mp-units-contracts INTERFACE)

if(${projectPrefix}API_CONTRACTS STREQUAL "NONE")
Expand Down
2 changes: 1 addition & 1 deletion test_package/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

cmake_minimum_required(VERSION 3.23)
cmake_minimum_required(VERSION 3.25)
project(test_package LANGUAGES CXX)

find_package(mp-units REQUIRED)
Expand Down

0 comments on commit 2411a7e

Please sign in to comment.