build: Minimum CMake version required set for each file based on its contents

This commit is contained in:
Mateusz Pusz
2020-12-21 22:56:00 +01:00
parent f2f1d030ff
commit a172f34684
15 changed files with 15 additions and 15 deletions

View File

@ -20,7 +20,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
cmake_minimum_required(VERSION 3.14)
cmake_minimum_required(VERSION 3.5)
find_package(Doxygen REQUIRED)
find_package(Sphinx REQUIRED)

View File

@ -8,7 +8,7 @@
# benchmarks. For documentation, questions and other resources please
# visit the home of the project at https://github.com/ldionne/metabench.
cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)
find_package(Ruby 2.1 QUIET)
if(NOT RUBY_EXECUTABLE)

View File

@ -20,7 +20,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
cmake_minimum_required(VERSION 3.14)
cmake_minimum_required(VERSION 3.2)
macro(enable_clang_tidy)
find_program(clang_tidy_cmd NAMES "clang-tidy")

View File

@ -22,7 +22,7 @@
# Based on https://github.com/lefticus/cpp_starter_project/blob/master/cmake/CompilerWarnings.cmake
cmake_minimum_required(VERSION 3.14)
cmake_minimum_required(VERSION 3.2)
# Configure compiler warning level
function(set_warnings target)