-
-
Notifications
You must be signed in to change notification settings - Fork 313
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use variable to set macOS compatible_version (#997)
- Loading branch information
Showing
2 changed files
with
7 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,12 @@ cmake_minimum_required (VERSION 3.16.3) # Oldest Ubuntu LTS (20.04 currently) | |
|
||
project(libheif LANGUAGES C CXX VERSION 1.17.0) | ||
|
||
# compatibility_version is never allowed to be decreased for any specific SONAME. | ||
# Libtool in the libheif-1.15.1 release had set it to 17.0.0, so we have to use this for the v1.x.y versions. | ||
# With v2.0.0, we can reset this to more closely follow the real version name, i.e. "2.0.0". | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
farindk
Author
Contributor
|
||
# CMake 3.17.0 added "MACHO_COMPATIBILITY_VERSION", but we are currently stuck at cmake 3.16.3. | ||
set(MACOS_COMPATIBLE_VERSION "17.0.0") | ||
|
||
# https://cmake.org/cmake/help/v3.1/policy/CMP0054.html | ||
cmake_policy(VERSION 3.0...3.22) | ||
include(GNUInstallDirs) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You can't, unfortunately. It forever has to stay >=17.0.0 now.