Skip to content

Commit

Permalink
cmake: Fix warning for deprecated 2.8.0 version
Browse files Browse the repository at this point in the history
  • Loading branch information
saprykin committed Jul 1, 2023
1 parent 6301fbb commit d2af2a3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The MIT License
#
# Copyright (C) 2018-2019 Alexander Saprykin <saprykin.spb@gmail.com>
# Copyright (C) 2018-2023 Alexander Saprykin <saprykin.spb@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
Expand All @@ -24,7 +24,7 @@

set (CMAKE_LEGACY_CYGWIN_WIN32 0)

cmake_minimum_required (VERSION 2.8.0)
cmake_minimum_required (VERSION 2.8.0...3.25.1)
project (plibsys C)

set (PLIBSYS_VERSION_MAJOR 0)
Expand Down
7 changes: 6 additions & 1 deletion cmake/PlatformDetect.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The MIT License
#
# Copyright (C) 2018 Alexander Saprykin <saprykin.spb@gmail.com>
# Copyright (C) 2018-2023 Alexander Saprykin <saprykin.spb@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
Expand Down Expand Up @@ -54,6 +54,11 @@ function (plibsys_detect_c_compiler result)
set (PLIBSYS_C_COMPILER xlc)
endif()

# Rename appleclang -> clang
if (PLIBSYS_C_COMPILER STREQUAL appleclang)
set (PLIBSYS_C_COMPILER clang)
endif()

# Assign result
set (${result} ${PLIBSYS_C_COMPILER} PARENT_SCOPE)
endfunction (plibsys_detect_c_compiler)
Expand Down

0 comments on commit d2af2a3

Please sign in to comment.