Skip to content

Fix use with CMake 3.21 and older#271

Merged
ToruNiina merged 1 commit intoToruNiina:mainfrom
SeverinLeonhardt:CMP0127
Aug 29, 2024
Merged

Fix use with CMake 3.21 and older#271
ToruNiina merged 1 commit intoToruNiina:mainfrom
SeverinLeonhardt:CMP0127

Conversation

@SeverinLeonhardt
Copy link
Contributor

The minimum required CMake version is 3.16 but CMP0127 was only introduced in 3.22. This results in errors with versions 3.16 - 3.21:

CMake Error at CMakeLists.txt:28 (cmake_policy):

  Policy "CMP0127" is not known to this version of CMake.

Fixed by only setting the policy when it's actually available.

The minimum required CMake version is 3.16 but CMP0127 was only
introduced in 3.22. This results in errors with versions 3.16 - 3.21:

```
CMake Error at CMakeLists.txt:28 (cmake_policy):

  Policy "CMP0127" is not known to this version of CMake.
```

Fixed by only setting the policy when it's actually available.
@ToruNiina ToruNiina merged commit 4b74012 into ToruNiina:main Aug 29, 2024
@ToruNiina
Copy link
Owner

Thank you!

github-actions bot pushed a commit that referenced this pull request Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants