You already have a solution, but just to answer your questions. I was talking about creating a system environment variable (similar to PATH). That is what CMake dereferences using the $ENV{var_name} syntax. The way to declare this depends on your operating system.