I added that line to the first line of my CMakeLists.txt file, here is a comparison between the microsoft PATH (left) and what VS adds (right):