From 3fc5ca34f95cf2100d2c197f7f9fa66c4cc6811c Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Wed, 15 Oct 2008 15:13:06 -0400 Subject: [PATCH] ENH: fix bootstrap test and warning --- Source/cmake.cxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Source/cmake.cxx b/Source/cmake.cxx index fcce00dd1..7c8378ace 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -34,9 +34,9 @@ # include "cmDependsFortran.h" // For -E cmake_copy_f90_mod callback. # include "cmVariableWatch.h" # include +# include #endif -#include #include #include #include @@ -4380,11 +4380,16 @@ int cmake::Build(const std::string& dir, projName.c_str(), target.c_str(), &output, makeProgram.c_str(), - config.c_str(), clean, false, 0, true); + config.c_str(), clean, false, 0, true, + extraBuildOptions.c_str()); } int cmake::DoBuild(int ac, char* av[]) { +#ifndef CMAKE_BUILD_WITH_CMAKE + std::cerr << "This cmake does not support --build\n"; + return -1; +#else std::string target; std::string config = "Debug"; std::string extraBuildOptions; @@ -4414,4 +4419,5 @@ int cmake::DoBuild(int ac, char* av[]) } cmake cm; return cm.Build(dir, target, config, extraBuildOptions, clean); +#endif }