79694222

Date: 2025-07-08 12:24:31
Score: 1
Natty:
Report link

The modern and portable way is

  file(REAL_PATH "~" HOME EXPAND_TILDE)

This would set the CMake variable HOME to the value of the HOME environment variable.

On Windows, the USERPROFILEenvironment variable might be used instead.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Andrei Polushin