CMAKE_INSTALL_PREFIX works for me... and is much cleaner. try this:
system "cmake", "-DCMAKE_INSTALL_PREFIX=#{prefix}", *std_cmake_args
system "make", "install"