From 4da8ac7b0bf569de130bc78e1312c65f7fece5c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20M=C3=BCthing?= <muething@dune-project.org> Date: Tue, 30 Jun 2015 13:35:52 +0200 Subject: [PATCH] [CMake][Doc] Add required CMake version to dune_enable_all_packages() State the minimum required version of CMake in the documentation for dune_enable_all_packages() and dune_target_enable_all_packages(). --- cmake/modules/DuneEnableAllPackages.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/modules/DuneEnableAllPackages.cmake b/cmake/modules/DuneEnableAllPackages.cmake index 819f29158..5fd58efc8 100644 --- a/cmake/modules/DuneEnableAllPackages.cmake +++ b/cmake/modules/DuneEnableAllPackages.cmake @@ -30,6 +30,9 @@ # versions handle linking (in particular CMP022 and CMP038). You can later add source files to the library # anywhere in the source tree by calling dune_library_add_sources(). # +# Warning: dune_enable_all_packages() requires CMake 2.8.12+. If you call this function with an older version +# of CMake, the build will fail with a fatal error. DO NOT enable this feature if your module needs +# to compile on machines with an older version of CMake. # Warning: The library feature requires CMake 3.1+. If you use the feature with older versions, CMake # will emit a fatal error. Moreover, it will issue a warning if the cmake_minimum_required() # version is older than 3.1. @@ -50,6 +53,8 @@ # This macro is mainly intended to help write DUNE modules that want to use dune_enable_all_packages() and # define their own libraries, but need to be compatible with CMake < 3.1. # +# Note: Just like dune_enable_all_packages(), this function requires CMake 2.8.12+. +# # # dune_register_package_flags(COMPILE_DEFINITIONS [flags] # COMPILE_OPTIONS [options] -- GitLab