Can you see if sourcing your environment has the desired effect? If not, please post your complete CMakeLists.txt and the output of echo \$CMAKE_PREFIX_PATH