From 22ff5620b369d866abca2f1ca34840b47bf0641b Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Tue, 13 May 2025 19:05:23 +0200 Subject: [PATCH] FindEnvModules: Update documentation - Updated and synced module documentation with other similar find modules. - Renamed "functions" to more general word "commands". Knowing if some module command is a function or a macro is from the user PoV mostly irrelevant and it also fits nicer with the rest of the modules. - Reworded descriptions to make this module slightly clearer to understand. - Moved examples section after commands and added example descriptions. --- Modules/FindEnvModules.cmake | 176 +++++++++++++++++++++++------------ 1 file changed, 114 insertions(+), 62 deletions(-) diff --git a/Modules/FindEnvModules.cmake b/Modules/FindEnvModules.cmake index 37901fcb16..3e7d800984 100644 --- a/Modules/FindEnvModules.cmake +++ b/Modules/FindEnvModules.cmake @@ -7,126 +7,126 @@ FindEnvModules .. versionadded:: 3.15 -Locate an environment module implementation and make commands available to -CMake scripts to use them. This is compatible with both Lua-based Lmod -and TCL-based EnvironmentModules. - -This module is intended for the use case of setting up the compiler and library -environment within a :ref:`CTest Script ` (``ctest -S``). It can -also be used in a :ref:`CMake Script