37125 Commits

Author SHA1 Message Date
Jano Svitok
7ed35aa331 Docs: Improve markup for graphviz related documentation
- add hyperlink to CMakeGraphVizOptions.cmake in cmake(1)
- improve markup in CMakeGraphVizOptions.cmake
2017-09-11 14:45:36 +02:00
Kitware Robot
8362db82ec CMake Nightly Date Stamp 2017-09-06 00:01:15 -04:00
Brad King
20e5f7a9c9 Merge topic 'ExternalProject-command'
15617484 ExternalProject: Prevent COMMAND from being treated as a true keyword

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1178
2017-09-05 09:31:06 -04:00
Brad King
4defa6c21c Merge topic 'add-FindPatch-module'
2645cb62 FindPatch: Add module to find 'patch' command-line tool

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1184
2017-09-05 09:28:40 -04:00
Brad King
e7de2a7def Merge topic 'update-kwsys'
cbf20178 Merge branch 'upstream-KWSys' into update-kwsys
37760743 KWSys 2017-09-01 (aee0cf59)

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1223
2017-09-05 09:27:22 -04:00
Kitware Robot
ad1b9eba85 CMake Nightly Date Stamp 2017-09-05 00:01:05 -04:00
Kitware Robot
8d13e9c1f5 CMake Nightly Date Stamp 2017-09-04 00:01:10 -04:00
Kitware Robot
de64329232 CMake Nightly Date Stamp 2017-09-03 00:01:04 -04:00
Craig Scott
1561748496 ExternalProject: Prevent COMMAND from being treated as a true keyword
The known keywords for each function are obtained by scraping the
documentation for lines matching a particular regular expression. In
commit 8842a027 (ExternalProject: Improve documentation, 2017-07-09),
the docs were overhauled and the COMMAND docs subsequently matched the
regular expression when they shouldn't have. This made COMMAND appear as
a true keyword, which thwarted the special handling logic elsewhere for
the intended use of COMMAND arguments.

This commit contains a workaround for issue #17229 to force a dependency
of the patch step on the update step to ensure a predictable step order.

Fixes: #17198
2017-09-02 17:53:16 +10:00
Kitware Robot
dd9d0ef83f CMake Nightly Date Stamp 2017-09-02 00:01:07 -04:00
Jean-Christophe Fillion-Robin
2645cb6208 FindPatch: Add module to find 'patch' command-line tool 2017-09-01 11:46:28 -04:00
Brad King
cbf2017822 Merge branch 'upstream-KWSys' into update-kwsys
* upstream-KWSys:
  KWSys 2017-09-01 (aee0cf59)
2017-09-01 10:35:19 -04:00
KWSys Upstream
37760743fc KWSys 2017-09-01 (aee0cf59)
Code extracted from:

    https://gitlab.kitware.com/utils/kwsys.git

at commit aee0cf59bbed8c8ccc07fa3d77760024cdca520a (master).

Upstream Shortlog
-----------------

Steven Velez (1):
      80652055 Directory: Use Windows Extended Paths
2017-09-01 10:35:18 -04:00
Brad King
671cc7490c Merge topic 'server-refactor'
0e4d5033 server: Added thread check to protect writedata
124424e9 server: Protect several fields from potentially pointing to bad memory
693fa0a9 server: Added assert to monitor uv_run status
882dcef8 server: Made connections in a server have a mutex to avoid use after frees
7ef28843 server: Moved buffer formatting into bufferstrategy
dc7a18d8 server: test buffer parsing
f8fd5a97 server: Made stdio connection accept different types of streams
6afc7f88 server: Remove unused fields / functions
...

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1111
2017-09-01 10:34:16 -04:00
Brad King
900f75868c Merge topic 'flang'
d8e03e9b FindOpenMP: Add Flang flag.
2f3a07a9 Flang: Add support for flang Fortran compiler

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1141
2017-09-01 10:33:15 -04:00
Brad King
4f68692807 Merge topic 'vs-std-cxx17-flag-map'
a46024be VS: Add v141 flag table entry for -std:c++17

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1221
2017-09-01 10:26:44 -04:00
Brad King
b568a18997 Merge topic 'tll-global-unknown-lib'
a47a8533 target_link_libraries: Allow linking to UNKNOWN IMPORTED GLOBAL libs

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1220
2017-09-01 10:26:08 -04:00
Brad King
bd77717800 Merge topic 'fix-genex-SOURCES'
068cc545 Genex: Fix TARGET_PROPERTY value of SOURCES

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1218
2017-09-01 10:25:08 -04:00
Brad King
068cc545d9 Genex: Fix TARGET_PROPERTY value of SOURCES
Refactoring in commit v3.8.0-rc1~445^2~2 (cmTarget: Move sanity checks
and computed property access to callers, 2016-10-13) exposed a typo in
commit v3.8.0-rc1~445^2~3 (cmGeneratorTarget: Implement
cmTargetPropertyComputer interface, 2016-10-13).  Together they broke
the `$<TARGET_PROPERTY:mytgt,SOURCES>` generator expression in the case
that the `SOURCES` target property is populated in part by the
`target_sources` command.  Add the missing `;`-separator.

Fixes: #17243
2017-09-01 10:23:37 -04:00
Brad King
9a509099f7 Merge topic 'FindThreads-cross-compile-no-try_run'
d4e551a9 FindThreads: Drop try_run to improve cross-compiling support

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1109
2017-09-01 10:21:23 -04:00
Kitware Robot
d75ccb1ce0 CMake Nightly Date Stamp 2017-09-01 00:01:08 -04:00
Justin Berger
0e4d503384 server: Added thread check to protect writedata 2017-08-31 15:35:46 -04:00
Justin Berger
124424e997 server: Protect several fields from potentially pointing to bad memory 2017-08-31 15:35:46 -04:00
Justin Berger
693fa0a96e server: Added assert to monitor uv_run status 2017-08-31 15:35:46 -04:00
Justin Berger
882dcef8e0 server: Made connections in a server have a mutex to avoid use after frees 2017-08-31 15:35:44 -04:00
Justin Berger
7ef2884361 server: Moved buffer formatting into bufferstrategy 2017-08-31 15:35:04 -04:00
Justin Berger
dc7a18d82e server: test buffer parsing 2017-08-31 15:35:04 -04:00
Justin Berger
f8fd5a979c server: Made stdio connection accept different types of streams 2017-08-31 15:35:04 -04:00
Justin Berger
6afc7f8828 server: Remove unused fields / functions 2017-08-31 15:35:03 -04:00
Justin Berger
1a50cd8c68 server: Fixed minor memory leaks 2017-08-31 15:35:03 -04:00
Justin Berger
546a587469 server: Fixed mismatched new/delete; added proper shutdown procedure 2017-08-31 15:35:03 -04:00
Tin Huynh
d8e03e9ba6 FindOpenMP: Add Flang flag. 2017-08-31 15:27:18 -04:00
Tin Huynh
2f3a07a981 Flang: Add support for flang Fortran compiler
flang is a Fortran compiler built on top of clang [1].  Because flang
shares a lot of commonalities with clang, the flang module piggybacks
off the clang module and overrides certain options.

Add flang to Fortran compiler auto find list.

Update flang preprocessor macros to differentiate from PGI.

Add Flang-FindBinUtils.

[1] https://github.com/flang-compiler/flang
2017-08-31 15:24:59 -04:00
Brad King
a46024be87 VS: Add v141 flag table entry for -std:c++17
Fixes: #17171
2017-08-31 14:59:34 -04:00
Brad King
9bad65940c Merge topic 'update-vim-syntax'
84d67356 Merge branch 'upstream-vim-cmake-syntax'
88da716c vim-cmake-syntax 2017-08-30 (40f5f4f3)

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1214
2017-08-31 13:33:13 -04:00
Brad King
a47a853376 target_link_libraries: Allow linking to UNKNOWN IMPORTED GLOBAL libs
This combination was accidentally rejected.  Allow it and add a test.

Fixes: #17245
2017-08-31 13:10:26 -04:00
Brad King
4f96641ba2 Merge topic 'cxx11-clang-format'
4022b286 clang-tidy: blacklist "modernize" checks
2b4c32c9 clang-format: format all code as Cpp11

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1191
2017-08-31 10:12:18 -04:00
Brad King
02d24c9ed2 Merge topic 'doc-xref-prefix-path'
952331cd Help: Cross-reference and clarify CMAKE_FIND_NO_INSTALL_PREFIX docs

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Luke Yeager <luke.yeager@gmail.com>
Merge-request: !1213
2017-08-31 10:11:21 -04:00
Brad King
b40a43a1f4 Merge topic 'test-server-result'
ea359bc5 Tests: Teach Server test to print server return code

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1212
2017-08-31 10:11:04 -04:00
Brad King
425bb1a66a Merge topic 'irsl-intel'
fd4406f3 IRSL: Add Intel compiler support
8444252f IRSL: Install VC++ OpenMP libraries only for MSVC

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Pelle <pbregener@gmail.com>
Merge-request: !1121
2017-08-31 10:09:42 -04:00
Brad King
96c882dcba Merge topic 'lexer-null'
14d9a11b ListFileLexer: fix heap-buffer-overflow on malicious input

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1153
2017-08-31 10:08:18 -04:00
Kitware Robot
b4efc1936a CMake Nightly Date Stamp 2017-08-31 00:01:11 -04:00
Patrick Boettcher
84d6735611 Merge branch 'upstream-vim-cmake-syntax'
* upstream-vim-cmake-syntax:
  vim-cmake-syntax 2017-08-30 (40f5f4f3)
2017-08-30 22:40:38 +02:00
vim-cmake-syntax upstream
88da716c42 vim-cmake-syntax 2017-08-30 (40f5f4f3)
Code extracted from:

    https://github.com/pboettch/vim-cmake-syntax.git

at commit 40f5f4f356251802c0a12f63e5f717debbd0cadc (master).

Upstream Shortlog
-----------------

Daniel Hahler (1):
      84967b5c Skip escaped quotes in cmakeString

Patrick Boettcher (11):
      de7c9072 extract properties as well
      5e4f9718 update keywords to latest cmake-revision
      96ee5480 fix #1 - highlight escaped quotes in strings
      d791d3ac README updated, install instruction
      e12d6cb4 do not highlight cmake-commands in cmake-command argument-list
      d2d564aa multi-line comments are now highlighted (again)
      0e62850d update keywords to v3.9.1-460-gce2750817
      65932f07 add test-framework and two tests
      018855b2 add cpo-saving and restoring (taken from vim's upstream-syntax-files)
      8fcb0a7d updated keywords to 3.9.20170830-ge0713
      40f5f4f3 preparations to be for inclusion to vim-repo
2017-08-30 22:33:54 +02:00
Brad King
952331cded Help: Cross-reference and clarify CMAKE_FIND_NO_INSTALL_PREFIX docs
Suggested-by: Luke Yeager <lukeyeager@users.noreply.github.com>
2017-08-30 15:05:04 -04:00
Brad King
a0ef210da8 Merge branch 'release-3.9' 2017-08-30 14:45:50 -04:00
Brad King
ea359bc5a6 Tests: Teach Server test to print server return code
This will aid in diagnosing failures.
2017-08-30 14:20:44 -04:00
Christian Pfeiffer
fd4406f33e IRSL: Add Intel compiler support
Fixes: #16891
Fixes: #9903
2017-08-30 19:24:59 +02:00
Matthias Maennich
14d9a11be9 ListFileLexer: fix heap-buffer-overflow on malicious input
In case a list file contains a null terminated string that is continued
until a later space, the lexer token information got inconsistent:

e.g. an argument   "TEST\0FOOBAR"    is passed by the lexer as a token

char* = "TEST\0FOOBAR" and length 11
             ^^ note: ascii 0x00

Using strdup in cmListFileLexer leads lexer->token.text to be allocated
with size 5 and lexer->token.length to be set to 11

A subsequent call to this function with an argument of  5 < length <= 11
wrongly assumed a sufficiently sized buffer and therefore corrupted the
heap buffer. The program might crash due to this corruption.
The case "NullTerminatedArgument" is intentionally using a quite large
'rest' to increase the chance to actually hit the issue. It will reliably
crash with address sanitizer enabled though.

This fix addresses all rules where arbitrary characters are matched to
ignore \0 in order to fall through to the rule that matches an arbitrary
character as BadCharacter.

Signed-off-by: Matthias Maennich <matthias@maennich.net>
2017-08-30 11:28:51 -04:00
Steffen Dettmer
d4e551a90b FindThreads: Drop try_run to improve cross-compiling support
Use `try_compile` instead of `try_run`.  It is not clear why `try_run`
was ever needed, and it does not work during cross-compiling.

Update the check's source file to remove code associated with actually
running things.  Also remove the ancient `__CLASSIC_C__` code path and
use a simple `int main(void)` as in `Modules/CheckIncludeFile.c.in`.

Fixes: #16920
2017-08-30 11:15:26 -04:00