# Distributed under the OSI-approved BSD 3-Clause License. See accompanying # file Copyright.txt or https://cmake.org/licensing for details. #[=======================================================================[.rst: 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