Issue
Is there a variable related to the home_dir(like /home/user) of Linux system in CMake. Or some other easy ways to get it.
Solution
Home directory is referred to by the HOME
environment variable, so you can access it in CMake script by:
$ENV{HOME}
Answered By - Tsyvarev Answer Checked By - David Marino (WPSolving Volunteer)