What I'm doing I'm writing a CMakeLists.txt to build a C++ project that will need to use R.
what is my problem Usually, when I would like to find a package/program, I would use find_package/program
function. But this only finds the first one in the path. What if I want to find all the executables with the same name?
For example, if somebody has multiple versions of R installed on the computer, can I find them all and return a list? An alternative can be that is there a way to detect if there are multiple R executables installed?
Thank you!