diff --git a/Source/cmaketest.cxx b/Source/cmaketest.cxx index 3fe0780b2..45ce992e2 100644 --- a/Source/cmaketest.cxx +++ b/Source/cmaketest.cxx @@ -123,9 +123,8 @@ int main (int argc, char **argv) } std::cout << "Done Generating build files.\n"; - cmake cm2; std::cout << "Generating build files (again)...\n"; - if (cm2.Run(args) != 0) + if (cm.Run(args) != 0) { std::cerr << "Error: cmake execution failed\n"; // return to the original directory