Skip to content

Fix CMake deprecation warning for old CMake versions#2821

Merged
oy merged 3 commits intoteeworlds:masterfrom
heinrich5991:pr_cmake_version_werror
Dec 13, 2020
Merged

Fix CMake deprecation warning for old CMake versions#2821
oy merged 3 commits intoteeworlds:masterfrom
heinrich5991:pr_cmake_version_werror

Conversation

@heinrich5991
Copy link
Contributor

Ported from ddnet/ddnet#3387.

Works around google/googletest#3040.

Declare that we're fine with policies up to 3.19.1. This should fix
policy errors and "too low cmake_minimal_version() errors" for the
forseeable future.

(cherry picked from commit 59cbc01)
@heinrich5991
Copy link
Contributor Author

  The OLD behavior for policy CMP0072 will be removed from a future version
  of CMake.

Seems like I also need to get rid of that. Will do that later™.

@heinrich5991
Copy link
Contributor Author

Hm, the commit was seemingly unnecessary, as we already set the OpenGL_GL_PREFERENCE variable. I wonder what's up with that.

Reverts #2264.

@heinrich5991 heinrich5991 force-pushed the pr_cmake_version_werror branch from 7b3ee24 to cd506ff Compare December 8, 2020 19:25
@heinrich5991
Copy link
Contributor Author

Ah, seems like we can't use newer GTest versions because we don't use C++11.

@oy oy merged commit 23f3351 into teeworlds:master Dec 13, 2020
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