cisco / libsrtp

Library for SRTP (Secure Realtime Transport Protocol)
Other
1.2k stars 472 forks source link

update cmake minimal required version to 3.12 #549

Closed codingspirit closed 3 years ago

codingspirit commented 3 years ago

The variable CMAKE_PROJECT_VERSION used at https://github.com/cisco/libsrtp/blob/8168ab17f4cc7cacb2db1e6f3ec0b505d6f24693/CMakeLists.txt#L5 was introduced in cmake version 3.12: https://cmake.org/cmake/help/v3.20/variable/CMAKE_PROJECT_VERSION.html

New in version 3.12.

If compiling with cmake version lower than 3.12, this variable will be undefined. This commit will update cmake_minimum_required to 3.12 to fix this issue.

pabuhler commented 3 years ago

If it is a requirement then this makes sense.