removed -D CMAKE_SYSTEM_PREFIX_PATH=$PREFIX from the cmake cmd line