CMake can dereference environment variables. You could define an environment variable named GLOCAL_INCLUDES_FOLDER
, and then use it in a CMakeList like this:
include_directories($ENV{GLOCAL_INCLUDES_FOLDER})
If the variable is intended for CMake use only, prefer to use CMake-style directory separators (forward slash) in it.