Skip to content

Conversation

@benoitdudu
Copy link

Hi,

I made this pull request to resolve issue #419.

The drawback of the solution I found is that it requires cmake 3.18 because it rely on cmake_language(EVAL CODE) (https://cmake.org/cmake/help/latest/command/cmake_language.html).

I tried other things, but I never managed to get the error message when I test:
module(use "")

The solution comes from this blog https://crascit.com/2019/01/29/forwarding-command-arguments-in-cmake/

I ran the following commands to check:
make test
make testinstall

Best regards,
Benoît

@xdelaruelle
Copy link
Collaborator

Many thanks for your help on this topic.

Looking at CMake availability in various distribution (https://repology.org/project/cmake/versions), it seems ok to require CMake >= 3.18 for newer releases of Modules. Such requirement is met for instance on EL >= 8, Debian >= 11 or Ubuntu >= 22.04.

…ssed to 'module' cmake function

Signed-off-by: Benoit Dumas <benoitdudu38@hotmail.fr>
@benoitdudu benoitdudu force-pushed the cmake_function_forward_arguments branch from 86e8e3d to d894760 Compare October 20, 2025 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants