[R-pkg-devel] CMake on CRAN Systems

Ivan Krylov |kry|ov @end|ng |rom d|@root@org
Wed Jan 17 08:54:13 CET 2024


Dear Sameh,

Regarding your question about the MPCR package and the use of CMake
<https://cran-archive.r-project.org/web/checks/2024/2024-01-12_check_results_MPCR.html>:
on a Mac, you have to look for the cmake executable in more than one
place because it is not guaranteed to be on the $PATH. As described in
Writing R Extensions
<https://cran.r-project.org/doc/manuals/R-exts.html#Using-cmake>, the
following is one way to work around the problem:

if test -z "$CMAKE"; then CMAKE="`which cmake`"; fi
if test -z "$CMAKE"; then
 CMAKE=/Applications/CMake.app/Contents/bin/cmake;
fi
if test -f "$CMAKE"; then echo "no ‘cmake’ command found"; exit 1; fi

Please don't reply to existing threads when starting a new topic on
mailing lists. Your message had a mangled link that went to
urldefense.com instead of cran-archive.r-project.org, letting Amazon
(who host the website) know about every visit to the link:
https://stat.ethz.ch/pipermail/r-package-devel/2024q1/010328.html

-- 
Best regards,
Ivan



More information about the R-package-devel mailing list