GMX_INSTALL_LEGACY_API does not include command-line header files in 2021 version

GROMACS version: 2021
GROMACS modification: No


I am trying to compile a code which calls function “gmx_run_cmain”. However, the header file “cmdlineinit.h” is missing. I build the Gromacs with “-DGMX_INSTALL_LEGACY_API=on”. Other headers like “pargs.h” and “filenm.h” are also missing.

I looked into “src/gromacs/commandline/CMakeLists.txt” and “GMX_INSTALL_LEGACY_API” option is completely missing. I do not know whether it is intentional, however, without these files, the code written for older Gromacs version cannot be compiled.

Please let me know, whether these files are installed in some other location.

With best regards,

Files in the directory commandline are no longer part of the legacy API. I don’t know why this decision was made. I will ask other developers.