summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* Configure KWSys to honor CMake_NO_CXX_STANDARDBrad King2019-01-301-0/+3
| | | | | | KWSys now computes a default `CMAKE_CXX_STANDARD` value if it is not told what standard to use. When `CMake_NO_CXX_STANDARD` is enabled, tell KWSys not to do that.
* Merge topic 'fileapi'Brad King2018-12-131-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | b9c6f08276 Help: Add release note for fileapi feature 4b6b2a571c fileapi: extend codemodel v2 with directory details eb8c7676a4 fileapi: extend codemodel v2 with a project model 42f0125ceb fileapi: Add test for cmakeFiles v1 6615408193 fileapi: add cmakeFiles v1 3f6ee75a66 fileapi: Add test for cache v2 7489e95b8e fileapi: add cache v2 ea0a060168 fileapi: Add test for codemodel v2 ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2706
| * jsoncpp: Require version 1.4.1 when using system-provided libraryBrad King2018-12-111-1/+1
| | | | | | | | We need the `failIfExtra` diagnostic added by that version.
* | CTest: Remove submit method 'xmlrpc'Regina Pfeifer2018-11-281-22/+4
|/
* Add option to build CMake itself with IPO/LTOCristian Adam2018-10-251-0/+12
| | | | | Create a `CMake_BUILD_LTO` option when building with a CMake that is new enough to support `CheckIPOSupported` everywhere.
* Merge topic 'fix-no-testing'Brad King2018-10-251-3/+4
|\ | | | | | | | | | | | | | | a834bcaa91 Tests: Add missing BUILD_TESTING conditions Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Dan Ibanez <daibane@sandia.gov> Merge-request: !2520
| * Tests: Add missing BUILD_TESTING conditionsBrad King2018-10-241-3/+4
| | | | | | | | | | | | We should not call `add_test` unless `BUILD_TESTING` is enabled. Fixes: #18500
* | Merge topic 'update-curl'Brad King2018-10-231-1/+0
|\ \ | |/ | | | | | | | | | | | | | | | | | | 0310024563 curl: Update build within CMake to account for 7.61 changes b9d1107790 curl: Backport to work with CMake 3.1 again e9e8dcee6b Merge branch 'upstream-curl' into update-curl 18812a9c3d curl 2018-09-04 (432eb5f5) ded211ae46 curl: Update script to get curl 7.61.1 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2509
| * curl: Update build within CMake to account for 7.61 changesBrad King2018-10-221-1/+0
| | | | | | | | | | | | | | The_CURL_STATICLIB option was replaced by BUILD_SHARED_LIBS. Drop our own CURL_STATICLIB compile definition because it is now provided by curl's usage requirements.
* | Declare support for CMake versions through 3.12 for own buildBrad King2018-10-171-1/+1
|/ | | | | | | | | | CMake 3.12 introduced a `...<max>` syntax in the version given to `cmake_minimum_required` to automatically set policies to NEW up to that version. Use it to avoid listing policies explicitly. The syntax is compatible with older versions of CMake such that they use the extended version string for the `CMAKE_MINIMUM_REQUIRED_VERSION` variable (which we don't use) but otherwise ignore it.
* Update CMake pre-cached values for libarchive 3.3.3Brad King2018-09-261-0/+1
| | | | The ENABLE_LZ4 option was added.
* libarchive: Bump the minimum version from 3.0.0 to 3.1.0Chuck Atkins2018-08-291-1/+1
| | | | | cmArchiveWrite uses the gzip:timestamp write filter option which was not available until v3.1.0.
* IWYU: Fix workaround mapping for std::hashBrad King2018-08-071-1/+2
| | | | | | | | | It is provided by `functional`, not `utility`. Fix the mapping added by commit 276d3c7afe (IWYU: Add workaround mapping for std::hash, 2018-07-31). Also generalize the workaround from commit v3.12.0-rc1~39^2~1 (IWYU: Define a macro to tell code it is preprocessing for iwyu, 2018-05-25) to allow local builds to configure specific flags. This is needed because iwyu behaves differently in different environments.
* IWYU: Define a macro to tell code it is preprocessing for iwyuBrad King2018-05-251-1/+1
| | | | | | | There are some cases where satisfying IWYU breaks compilation, such as forward-declaring the `std::hash<>` template with C++ standard libraries that use an inline namespace inside `std`. Define a macro during include-what-you-use preprocessing so that code can adapt.
* Merge topic 'libuv_version_bump'Brad King2018-04-171-1/+1
|\ | | | | | | | | | | | | f5f72ff844 Explicitly require LibUV 1.10 or higher to build CMake Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1966
| * Explicitly require LibUV 1.10 or higher to build CMakeErofeevK2018-04-161-1/+1
| | | | | | | | CMake 3.11 now uses `uv_translate_sys_error` introduced in LibUV 1.10.
* | ccmake: Check for curses more robustly before enablingBrad King2018-03-211-12/+14
|/ | | | | | | | | | Compute a default for `BUILD_CursesDialog` by building a small test project that uses curses. Disable `ccmake` by default if it fails, and do not search for Curses as part of the main build. This avoids creating FindCurses cache entries when we are not considering ccmake. If `BUILD_CursesDialog` is enabled (e.g. by the user) then warn if curses cannot be found.
* CMakeLib: Link to system thread libraries to support std::threadBrad King2018-02-221-0/+2
| | | | | | | | | Some environments require linking to thread libraries for `std::thread`. Express this direct dependency of CMakeLib explicitly. Previously this was done indirectly through our bundled libuv, but that does not work when using a system libuv. Fixes: #17757
* Compile CMake as C++17 if supported by the compilerBrad King2017-12-221-4/+13
| | | | | | | | | | Add a check that a simple source file can compile as C++17 that uses some of the features we need. Do this only when hosted by CMake 3.8 or above because those versions are aware of C++17. Check for unordered_map as we do in bootstrap since commit 375eca7881 (bootstrap: Check support for unordered_map from compiler mode, 2017-11-30). Also maintain the existing C++14 cstdio check.
* Generalize check for C++14 constructsBrad King2017-12-221-2/+2
| | | | | | The check for C++14 and cstdio is a special case of the more general problem of checking that the compiler's C++14 mode supports everything we need. Rename the checks accordingly.
* AIX: Add -pthread flag to enable std::thread with GCCBrad King2017-11-281-0/+4
|
* Merge topic 'tidy-sha1-comment'Brad King2017-11-201-1/+6
|\ | | | | | | | | | | | | 08353542 clang-tidy: Clarify comment explaining purpose of CLANG_TIDY_SHA1 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1497
| * clang-tidy: Clarify comment explaining purpose of CLANG_TIDY_SHA1Brad King2017-11-171-1/+6
| | | | | | | | Suggested-by: Bill Hoffman <bill.hoffman@kitware.com>
* | IWYU: Suppress warnings from the internal ClangBrad King2017-11-171-1/+1
|/ | | | | | | Do not obscure IWYU's report with warnings from its internal Clang. We have other testing for such warnings. Also, when compiling with a non-Clang compiler we might use warning options that IWYU's Clang does not understand, and we don't want to see warnings about that.
* clang-tidy: Make .clang-tidy a build-time dependencyMatthias Maennich2017-09-281-0/+6
| | | | | | | | | | Currently a change to the clang-tidy configuration remains unnoticed for incremental builds in the way that it won't trigger a rebuild. This can be considered a missing dependency that this patch fixes by introducing a compile time definition (-DCLANG_TIDY_SHA1) that triggers a rebuild upon change. Currently this only applies to the target CMakeLib. Signed-off-by: Matthias Maennich <matthias@maennich.net>
* server: test buffer parsingJustin Berger2017-08-311-0/+3
|
* server: always enable serverDaniel Pfeifer2017-08-261-18/+0
|
* server: backport to C++11Daniel Pfeifer2017-08-261-4/+1
|
* Merge topic 'require-c++11'Brad King2017-08-211-0/+4
|\ | | | | | | | | | | | | fd4fd9a2 Require C++11 to build CMake itself Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1132
| * Require C++11 to build CMake itselfBrad King2017-08-161-0/+4
| | | | | | | | | | | | | | | | | | CMake can now compile as C++11 on all supported platforms. Check that std::unique_ptr is available and fail early if missing. This will allow us to use C++11 more broadly in CMake's implementation (previously it was restricted to the serve mode implementation). Co-Author: Daniel Pfeifer <daniel@pfeifer-mail.de>
* | Require CMake 3.1 to build CMake itselfBrad King2017-08-101-22/+4
|/ | | | | This simplifies some policy settings and use of third-party libraries with imported targets.
* Make libuv available to all parts of CMakeBrad King2017-08-081-38/+13
| | | | | | | The libuv library provides many useful platform abstractions and better process management than KWSys. We'd like to use it everywhere instead of just in the server mode. Drop the `CMAKE_USE_LIBUV` option and use libuv everywhere except during bootstrap.
* HP-UX: Drop support for building CMake on HP-UXBrad King2017-08-071-3/+8
| | | | | | | | CMake will soon require both C++11 and libuv to build. Neither of these works on HP-UX, so unfortunately we need to drop support for the platform until someone can get them working. Issue: #17137
* Build with libuv on Cygwin to enable server-modeBrad King2017-05-281-3/+0
| | | | With our last update of libuv, Cygwin is now supported.
* Update SunPro flags used for CMake itself to support C++11Brad King2017-05-081-4/+8
|
* Choose compiler-specific flags earlier in CMake's own buildBrad King2017-05-081-3/+4
| | | | Add the flags early enough be used in the checks for C++ features.
* clang-tidy: add option CMake_RUN_CLANG_TIDYDaniel Pfeifer2017-05-041-0/+14
|
* Add include-what-you-use mappingDaniel Pfeifer2017-04-131-0/+11
|
* Help/dev: Exclude this directory from user-facing documentationBrad King2017-03-011-0/+1
| | | | | | | Teach Sphinx and our own install rules to skip a `Help/dev` directory. This will give us a place to put developer-only documentation that should not be included in the user-facing documentation. Add a placeholder README.
* Enable libuv on Solaris 10Brad King2017-02-281-6/+0
| | | | We've ported our libuv to this platform so we can build it now.
* Update CMake pre-cached values for libarchive 3.3.0Brad King2017-02-231-11/+13
|
* Disable libuv on Solaris 10Eric Berge2016-12-211-0/+3
| | | | | | | | | | Two issues need to be resolved to add Solaris 10 libuv support: 1. libuv needs to provide alternative functionality for systems that do not support mkdtemp() 2. cmake should set SUNOS_NO_IFADDRS for Solaris 10 builds (but not Solaris 11)
* Add option to build CMake against a system librhashBrad King2016-11-101-4/+18
| | | | Create a CMAKE_USE_SYSTEM_LIBRHASH option.
* librhash: Build the library within CMakeBrad King2016-11-101-0/+4
| | | | | | | | Update `ustd.h` to include KWSys Large File Support configuration so that consistent stream libraries are used (on AIX with XL). Add a `cm_rhash.h` header to include the CMake-provided copy of the `rhash.h` header from CMake sources.
* Encoding: Remove option to use ANSI code page internallyClinton Stimpson2016-11-021-6/+2
| | | | | | The switch to use UTF-8 encoding has been defaulted to on for quite some time since commit v3.2.0-rc1~116^2 (Encoding: Switch to use UTF-8 internally by default on Windows, 2014-12-26).
* Enable Unicode output to Windows consolesDāvis Mosāns2016-10-261-0/+1
| | | | | | Use KWSys ConsoleBuf to replace the `streambuf` on `std::cout` and `std::cerr` so that process output can be encoded correctly for display in a Windows console.
* Allow custom built libarchive to use custom built expat.Daniel Pfeifer2016-10-091-18/+20
| | | | Expat is built anyway.
* Don't require liblzma when using system libarchiveDaniel Pfeifer2016-10-091-12/+14
|
* Don't require libbz2 when using system libarchiveDaniel Pfeifer2016-10-091-8/+13
|
* Set minimum version for LibUV to 1.0.0Chuck Atkins2016-10-071-1/+1
| | | | | | Older versions of libuv did not have the uv_loop_close API. It first showed up in unstable releases ~ v0.11.20 but was not available in a stable release until v1.0