summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-10-15 19:13:06 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-10-15 19:13:06 (GMT)
commit3fc5ca34f95cf2100d2c197f7f9fa66c4cc6811c (patch)
tree860ba7cc51a7578b690b66f06c0985c7afc8ab2d /Source/cmake.cxx
parent1777bb502a3c8dbcead54b11fe403e13fe9c225c (diff)
downloadCMake-3fc5ca34f95cf2100d2c197f7f9fa66c4cc6811c.zip
CMake-3fc5ca34f95cf2100d2c197f7f9fa66c4cc6811c.tar.gz
CMake-3fc5ca34f95cf2100d2c197f7f9fa66c4cc6811c.tar.bz2
ENH: fix bootstrap test and warning
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index fcce00d..7c8378a 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 <cmsys/Terminal.h>
+# include <cmsys/CommandLineArguments.hxx>
#endif
-#include <cmsys/CommandLineArguments.hxx>
#include <cmsys/Directory.hxx>
#include <cmsys/Process.h>
#include <cmsys/Glob.hxx>
@@ -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
}