diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-12-28 22:02:16 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-12-28 22:02:16 (GMT) |
commit | 2fcd41323b0101b35f49b27a82e02469267989ee (patch) | |
tree | d5bdf22f2b51f38679f4b0f25c26497a70e893e7 /Source | |
parent | 0ef674b906981dfffd77e4a85e9cc928020035d7 (diff) | |
download | CMake-2fcd41323b0101b35f49b27a82e02469267989ee.zip CMake-2fcd41323b0101b35f49b27a82e02469267989ee.tar.gz CMake-2fcd41323b0101b35f49b27a82e02469267989ee.tar.bz2 |
COMP: Fix complex test and fix bootstrap
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmSystemTools.cxx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 321c4b4..2377afb 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -1359,12 +1359,15 @@ bool cmSystemTools::IsPathToFramework(const char* path) return false; } -#include <libtar/libtar.h> -#include <memory> // auto_ptr -#include <fcntl.h> +#if defined(CMAKE_BUILD_WITH_CMAKE) +# include <libtar/libtar.h> +# include <memory> // auto_ptr +# include <fcntl.h> +#endif bool cmSystemTools::CreateTar(const char* outFileName, const std::vector<cmStdString>& files) { +#if defined(CMAKE_BUILD_WITH_CMAKE) TAR *t; char buf[TAR_MAXPATHLEN]; char pathname[TAR_MAXPATHLEN]; @@ -1413,4 +1416,7 @@ bool cmSystemTools::CreateTar(const char* outFileName, const std::vector<cmStdSt return false; } return true; +#else + return false; +#endif } |