Commit Graph

35914 Commits

Author SHA1 Message Date
Daniel Pfeifer c2c2bbb3d4 cmake: register fake project commands in -P mode 2017-05-08 22:58:01 +02:00
Daniel Pfeifer c36d63cd48 cmake: initialize with Role that controls which commands to register 2017-05-08 22:29:44 +02:00
Daniel Pfeifer 8986dec05d ctest: remove unused cmake instance 2017-05-08 22:29:44 +02:00
Brad King 22d0a83a4c Merge topic 'c++11-iwyu'
50dd15af QtDialog: block include-what-you-use
f3e21613 cmServer: include what you use
9535823b IWYU: map system symbols to libuv
6a91ee02 IWYU: add mapping for cm::auto_ptr
7165065f cmInstalledFile: add cmConfigure.h as first #include

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !811
2017-05-08 10:03:15 -04:00
Brad King 141b8ccf2c Merge topic 'f2c-int-fix'
93f119ed FortranCInterface: Add support for PGI on Windows
2cfea104 FortranCInt: Pass CONFIG flags to try_compile

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !802
2017-05-08 09:54:11 -04:00
Brad King 7335550209 Merge topic 'jsoncpp-no-iwyu'
e446fa4e jsoncpp: Exclude from include-what-you-use

Acked-by: Kitware Robot <kwrobot@kitware.com>
Reviewed-by: Daniel Pfeifer <daniel@pfeifer-mail.de>
Merge-request: !810
2017-05-08 09:51:02 -04:00
Brad King 0361ca52f6 Merge topic 'nag-fortran-version'
d47190ba NAG: Detect compiler version of NAG Fortran
d52a4256 NAG: Extend compiler tool selection with NAG Fortran

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: Tom <tom.clune@nasa.gov>
Merge-request: !809
2017-05-08 09:50:20 -04:00
Brad King b05688db47 Merge topic 'pgi-rdynamic-fix'
fb31229e Linux-PGI: Prevent -rdynamic ending up in flags

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !808
2017-05-08 09:49:12 -04:00
Brad King 2f087606b7 Merge topic 'pgi-fix-linux'
d59e3509 Do not assume GCC libs are linked by all compilers

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !800
2017-05-08 09:48:19 -04:00
Brad King 9fe8abbe03 Merge topic 'FindOpenCL-AMDAPPSDKROOT'
b259fe84 FindOpenCL: Add missing PATHS keyword

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !807
2017-05-08 09:47:35 -04:00
Brad King 830637192d Merge topic 'clazy-cleanup'
422359fe CMakeSetupDialog: use multi-arg
1ffe47e3 QCMakeCacheView: prever QVector over QList
726b3b6f QtDialog: add reference in foreach
377d4df2 QCMakeCacheView: avoid temporary containers for iteration
a57b30bb QtDialog: add missing emit keywords
7a0e2392 cmFileMonitor: use cmDeleteAll

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !805
2017-05-08 09:46:58 -04:00
Brad King 4c17299647 Merge topic 'libuv-solaris'
6b0bc432 libuv: Compile as C 99 on Solaris 5.11
b08d2d99 libuv: Compile as C 90 on Solaris 5.10 with SunPro 5.14

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !806
2017-05-08 09:46:20 -04:00
Kitware Robot 033eafcf44 CMake Nightly Date Stamp 2017-05-08 00:01:05 -04:00
Kitware Robot 41f479467b CMake Nightly Date Stamp 2017-05-07 00:01:03 -04:00
Christian Pfeiffer 93f119ed25 FortranCInterface: Add support for PGI on Windows 2017-05-06 16:36:33 +02:00
Christian Pfeiffer 2cfea104a6 FortranCInt: Pass CONFIG flags to try_compile
This change ensures that Intel Fortran's /libs: in
CMAKE_Fortran_FLAGS and Visual C++'s /MT or /MD in the
CMAKE_C_FLAGS_RELEASE do not conflict with each other.
2017-05-06 16:36:24 +02:00
Kitware Robot 17981e0946 CMake Nightly Date Stamp 2017-05-06 00:01:04 -04:00
Daniel Pfeifer 50dd15af58 QtDialog: block include-what-you-use 2017-05-06 00:03:48 +02:00
Daniel Pfeifer f3e216131b cmServer: include what you use 2017-05-06 00:03:47 +02:00
Daniel Pfeifer 9535823b2c IWYU: map system symbols to libuv 2017-05-06 00:03:44 +02:00
Daniel Pfeifer 6a91ee0265 IWYU: add mapping for cm::auto_ptr 2017-05-06 00:03:43 +02:00
Daniel Pfeifer 7165065f03 cmInstalledFile: add cmConfigure.h as first #include 2017-05-06 00:03:42 +02:00
Brad King e446fa4eb4 jsoncpp: Exclude from include-what-you-use
This is third-party code.
2017-05-05 16:00:20 -04:00
Christian Pfeiffer fb31229e99 Linux-PGI: Prevent -rdynamic ending up in flags
Ensure that PGI on Linux keeps its
CMAKE_SHARED_LIBRARY_LINK_<LANG>_FLAGS empty, especially of -rdynamic.
In CMakeFortranInformation a lot of flags will be copied from their C
equivalents if they're not defined. By using a combination of GCC and
PGFortran, this will lead to -rdynamic ending up in the PGI flags and
none of the PGI compilers understand that flag, crashing with a fatal
error.
2017-05-05 17:30:11 +02:00
Christian Pfeiffer d59e350985 Do not assume GCC libs are linked by all compilers
Not all compilers link libgcc and libgcc_s causing trouble when linking
C++ code with instance PGI Fortran and C compilers.
2017-05-05 17:26:29 +02:00
Tom Clune d47190ba46 NAG: Detect compiler version of NAG Fortran
Fixes: #16817
2017-05-05 11:08:37 -04:00
Tom Clune d52a4256b2 NAG: Extend compiler tool selection with NAG Fortran
Add `nag` and `nagfor`.
2017-05-05 10:31:09 -04:00
Kirill Mavreshko b259fe84ab FindOpenCL: Add missing PATHS keyword
The change in commit b888104e44 (FindOpenCL: add AMDAPPSDKROOT into
paths for OpenCL library, 2017-05-03) accidentally left out the `PATHS`
keyword.  Without it properly installed AMD APP SDK (OpenCL) cannot be
detected.  Tested on Ubuntu 16.04.
2017-05-05 10:19:19 -04:00
Brad King 6b0bc43281 libuv: Compile as C 99 on Solaris 5.11
SunPro 5.13 and below do not compile as c99 by default.
2017-05-05 09:52:25 -04:00
Brad King b08d2d993c libuv: Compile as C 90 on Solaris 5.10 with SunPro 5.14 2017-05-05 09:52:24 -04:00
Brad King e1ae739e1f Merge topic 'ctest_submit_headers'
1a7d00bd ctest_submit: Add HTTPHEADER option

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !793
2017-05-05 09:50:58 -04:00
Brad King b605bdfd03 Merge topic 'vector-over-list'
3e027d9d c++: prefer vectors over lists

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !799
2017-05-05 09:49:41 -04:00
Brad King 5a9f1b87c3 Merge topic 'add-more-sunpro-c-flags'
1a09a7d9 SunPro: Add more flags for C language standards

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !803
2017-05-05 09:47:57 -04:00
Brad King 053c0f1e44 Merge topic 'clang-tidy-config'
d0c3e47d clang-tidy: add option CMake_RUN_CLANG_TIDY
894ff96c auto_ptr: silence clang-tidy warnings

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !790
2017-05-05 09:47:19 -04:00
Brad King 718f0c24f7 Merge topic 'findjava-openjdk9'
f5a3ec4d FindJava: Add support for OpenJDK early access builds

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !797
2017-05-05 09:45:30 -04:00
Brad King d90bf11e2f Merge topic 'vs-masm-flags'
ea6bb829 VS: Use tool-specific flag table for COMPILE_FLAGS parsing
da9076e4 VS: Fix MASM flag tables

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !791
2017-05-05 09:45:04 -04:00
Daniel Pfeifer 422359fe79 CMakeSetupDialog: use multi-arg 2017-05-05 09:21:17 +02:00
Daniel Pfeifer 1ffe47e37f QCMakeCacheView: prever QVector over QList 2017-05-05 09:21:16 +02:00
Daniel Pfeifer 726b3b6f75 QtDialog: add reference in foreach 2017-05-05 09:21:13 +02:00
Daniel Pfeifer 377d4df279 QCMakeCacheView: avoid temporary containers for iteration 2017-05-05 09:21:12 +02:00
Daniel Pfeifer a57b30bb60 QtDialog: add missing emit keywords 2017-05-05 09:21:11 +02:00
Daniel Pfeifer 7a0e239240 cmFileMonitor: use cmDeleteAll 2017-05-05 09:21:10 +02:00
Kitware Robot 0e967e3b1d CMake Nightly Date Stamp 2017-05-05 00:01:05 -04:00
Chuck Atkins 1a09a7d992 SunPro: Add more flags for C language standards 2017-05-04 14:10:07 -04:00
Zack Galbreath 1a7d00bd12 ctest_submit: Add HTTPHEADER option
Allow CTest script writers to specify additional HTTP headers to be sent
to CDash during submission.

The motivating case for this feature is a corresponding change in CDash.
This will allow projects to refuse submissions from any site not bearing
a valid authentication token.
2017-05-04 12:21:21 -04:00
Daniel Pfeifer d0c3e47d80 clang-tidy: add option CMake_RUN_CLANG_TIDY 2017-05-04 17:39:23 +02:00
Daniel Pfeifer 894ff96c06 auto_ptr: silence clang-tidy warnings 2017-05-04 17:39:23 +02:00
Brad King 30cb24f39c Merge topic 'sunpro-5.14'
f15f905b Features: Record standards and features for SunPro 5.14

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !795
2017-05-04 11:33:38 -04:00
Ben Boeckel 3e027d9def c++: prefer vectors over lists
None of these usages of `std::list` were inserting or removing elements
in the middle of the structure, so there were no benefits to using it.

Other uses were related to C pointers being stable in a list of strings
whereas in a vector of strings, small pointer optimizations could be
moved and become invalid after a modification to the hosting vector.
None of these uses modified the vector after handing out a C string to
an external store.
2017-05-04 11:17:49 -04:00
Bryan Donlan f5a3ec4d76 FindJava: Add support for OpenJDK early access builds
OpenJDK 9 early access builds use a version string of "9-ea", and
locally built installations use "9-internal", neither of which is
currently accepted by the FindJava macro.  Map those versions to "1.9".
If the final released version is "9.0" the version interpretation could
be changed to match at that time.
2017-05-04 10:49:17 -04:00