summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Defer check for sources within a target until generation.Deniz Bahadir2017-10-2424-75/+97
| | | | | | | | | | | | | | | The `add_library` and `add_executable` commands can now be called with no source-files and won't generate a warning or error message, as long as source-files will be added later via the `target_sources` command. If during the generation step still no sources are associated with targets created by such calls a useful error message will be generated and generation fails. Targets of type `INTERFACE_LIBRARY`, `UTILITY` or `GLOBAL_TARGET` are excluded from this check because we do not need sources for these target types during generation. Fixes: #16872
* Tests: Exclude bad RunCMake.add_executable case on multi-arch XcodeBrad King2017-10-241-1/+3
| | | | | | | The `NoSourcesButLinkObjects` case would not be expected to work under Xcode with multiple architectures even if the target objects were listed directly as sources. Exclude it. We already exclude similar cases in `RunCMake.add_library`.
* Merge topic 'curl_netrc_options'Brad King2017-10-1920-4/+277
|\ | | | | | | | | | | | | | | | | | | | | d45aa38a Add dev notes for topic 'curl_netrc_options' 60c272b6 ExternalProject: Add support for NETRC and NETRC_FILE suboption 754e39dd Add testcases for file(DOWNLOAD|UPLOAD) netrc options 5d67e902 file(DOWNLOAD|UPLOAD): Add 'NETRC' and 'NETRC_FILE' suboption Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Ruslan Baratov <ruslan_baratov@yahoo.com> Merge-request: !1376
| * Add dev notes for topic 'curl_netrc_options'Shane Parris2017-10-181-0/+14
| |
| * ExternalProject: Add support for NETRC and NETRC_FILE suboptionShane Parris2017-10-183-3/+47
| |
| * Add testcases for file(DOWNLOAD|UPLOAD) netrc optionsShane Parris2017-10-189-0/+72
| |
| * file(DOWNLOAD|UPLOAD): Add 'NETRC' and 'NETRC_FILE' suboptionShane Parris2017-10-188-1/+144
| |
* | Merge topic 'ti-compiler-depfile-support'Brad King2017-10-193-0/+8
|\ \ | | | | | | | | | | | | | | | | | | ad9327d9 Compiler/TI: Add support for depfile generation for Ninja Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1389
| * | Compiler/TI: Add support for depfile generation for NinjaNico Müller2017-10-183-0/+8
| | | | | | | | | | | | | | | | | | | | | TI C/C++ compiler are now able to generate dependency files during compilation. Fixes: #17360
* | | Merge topic 'ide-direct-CMakeLists.txt'Brad King2017-10-1912-124/+93
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 344d149a VS,Xcode: Add CMakeLists.txt sources without mutating targets Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1392
| * | | VS,Xcode: Add CMakeLists.txt sources without mutating targetsBrad King2017-10-1812-124/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rather than injecting `CMakeLists.txt` files into each target's `SOURCES`, teach the generators to add them during generation using dedicated code. This avoids mutating the original targets, and avoids polluting `$<TARGET_PROPERTY:foo,SOURCES>` with generator-specific content. This also avoids listing the `CMakeLists.txt` sources in the results of `CMAKE_DEBUG_TARGET_PROPERTIES==SOURCES` so the `RunCMake.TargetSources` test no longer needs a separate case for IDEs.
* | | | CMake Nightly Date StampKitware Robot2017-10-191-1/+1
|/ / /
* | | Merge branch 'release-3.10'Brad King2017-10-180-0/+0
|\ \ \
| * \ \ Merge branch 'vs-cuda-machine' into release-3.10Brad King2017-10-171-0/+7
| |\ \ \ | | | | | | | | | | | | | | | Merge-request: !1390
| * \ \ \ Merge branch 'findopenmp-lib-paths' into release-3.10Brad King2017-10-171-7/+21
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Merge-request: !1385
* | \ \ \ \ Merge topic 'cmake-open'Brad King2017-10-1821-29/+299
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 96d642c7 cmake-gui: Use cmake::Open to open generated project 5de37a4a cmake: Add --open option for IDE generators Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Ruslan Baratov <ruslan_baratov@yahoo.com> Merge-request: !1337
| * | | | | | cmake-gui: Use cmake::Open to open generated projectGregor Jasny2017-10-134-28/+46
| | | | | | |
| * | | | | | cmake: Add --open option for IDE generatorsGregor Jasny2017-10-1317-1/+253
| | | | | | |
* | | | | | | Merge topic 'module-fetchcontent'Brad King2017-10-1823-0/+1266
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1e56634f FetchContent: Add tests 60e74d2f FetchContent: New module for populating content at configure time Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1306
| * | | | | | | FetchContent: Add testsCraig Scott2017-10-1618-0/+318
| | | | | | | |
| * | | | | | | FetchContent: New module for populating content at configure timeCraig Scott2017-10-165-0/+948
| | | | | | | |
* | | | | | | | Merge topic 'vs-cuda-machine'Brad King2017-10-181-0/+7
|\ \ \ \ \ \ \ \ | | |_|_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fd90a14f VS: Set CUDA TargetMachinePlatform explicitly on x64 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1390
| * | | | | | | VS: Set CUDA TargetMachinePlatform explicitly on x64Brad King2017-10-171-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `TargetMachinePlatform` setting tells CUDA what `--machine {32,64}` flag to pass to nvcc. While CUDA automatically chooses the proper default for the target architecture, it does not reflect this in the user-visible IDE settings. Set it explicitly to fix the user-visible setting. Fixes: #17355
* | | | | | | | Merge topic 'findopenmp-lib-paths'Brad King2017-10-181-7/+21
|\ \ \ \ \ \ \ \ | | |_|_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f4cc7109 FindOpenMP: Improve OMP libraries search Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1385
| * | | | | | | FindOpenMP: Improve OMP libraries searchChristian Pfeiffer2017-10-171-7/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This supports libraries given as full path and filters libraries given in CMAKE_<LANG>_STANDARD_LIBRARIES. Fixes: #17351
* | | | | | | | CMake Nightly Date StampKitware Robot2017-10-181-1/+1
| | | | | | | |
* | | | | | | | Merge branch 'release-3.10'Brad King2017-10-170-0/+0
|\ \ \ \ \ \ \ \ | | |_|_|_|/ / / | |/| | | | | |
| * | | | | | | Merge branch 'vs-2017-cl-check' into release-3.10Brad King2017-10-162-25/+40
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge-request: !1388
| * \ \ \ \ \ \ \ Merge branch 'imported-interface-no-system' into release-3.10Brad King2017-10-135-15/+22
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge-request: !1386
* | \ \ \ \ \ \ \ \ Merge topic 'vs-2017-cl-check'Brad King2017-10-172-25/+40
|\ \ \ \ \ \ \ \ \ \ | | |_|/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f566586e VS: Detect compiler component in VS 2017 instances more reliably c6bb704e cmVSSetupHelper: Fix install location encoding conversion 4c3116d7 cmVSSetupHelper: Factor out install location string construction Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1388
| * | | | | | | | | VS: Detect compiler component in VS 2017 instances more reliablyBrad King2017-10-162-19/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `Microsoft.VisualStudio.Component.VC.Tools.x86.x64` component is not the only way a VS instance may provide the `cl` compiler tool. For example, VS 2017 Express Edition does not install that component. Instead search for the tools directly on disk within an instance. Suggested-by: Rich Chiodo <rchiodo@microsoft.com> Fixes: #17349
| * | | | | | | | | cmVSSetupHelper: Fix install location encoding conversionBrad King2017-10-161-2/+3
| | | | | | | | | |
| * | | | | | | | | cmVSSetupHelper: Factor out install location string constructionBrad King2017-10-162-6/+12
| | |_|_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | This also adds a missing conversion to unix slashes in one code path.
* | | | | | | | | Merge topic 'Linux-CUDA-OpenCL'Brad King2017-10-171-1/+4
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 060fd233 FindOpenCL: Add support for CUDA OpenCL on Linux Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1387
| * | | | | | | | | FindOpenCL: Add support for CUDA OpenCL on LinuxTakenori Yamamoto2017-10-151-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When setting CUDA_PATH, the include directory ($CUDA_PATH/include) was found, but libOpenCL.so was not found. This patch resloved the issue.
* | | | | | | | | | CMake Nightly Date StampKitware Robot2017-10-171-1/+1
| |_|_|_|_|_|_|/ / |/| | | | | | | |
* | | | | | | | | Merge topic 'imported-interface-no-system'Brad King2017-10-165-15/+22
|\ \ \ \ \ \ \ \ \ | | |_|_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 22beb07f Help: Clarify documentation of NO_SYSTEM_FROM_IMPORTED 2de0e0fd Do not initialize NO_SYSTEM_FROM_IMPORTED on INTERFACE libraries Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1386
| * | | | | | | | Help: Clarify documentation of NO_SYSTEM_FROM_IMPORTEDBrad King2017-10-132-8/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This property is meant to be set on the consumers of imported targets, not the imported targets themselves. Fixes: #17348
| * | | | | | | | Do not initialize NO_SYSTEM_FROM_IMPORTED on INTERFACE librariesBrad King2017-10-134-7/+9
| | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The change in commit v3.8.0-rc1~276^2 (Allow NO_SYSTEM_FROM_IMPORTED on imported INTERFACE libraries, 2016-11-21) was incorrect. The property is not meant to be set on imported targets at all. It is meant to be set on their consumers that compile sources. Since INTERFACE libraries have no sources to compile, the property is not needed on them. Revert most of that change. Unfortunately we must still tolerate project code setting NO_SYSTEM_FROM_IMPORTED on INTERFACE libraries because they were allowed by CMake 3.8 and 3.9. Issue: #17348
* | | | | | | | Merge topic 'UseJava-add_jar-split-build-and-output-dirs'Brad King2017-10-161-4/+4
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 48dcb2f0 UseJava: add_jar OUTPUT_DIR option used only for jar generation. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1380
| * | | | | | | | UseJava: add_jar OUTPUT_DIR option used only for jar generation.Marc Chevrier2017-10-121-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Build artifacts go to CMAKE_CURRENT_BINARY_DIR subdirectory in all cases. Fixes: #17341
* | | | | | | | | Merge topic 'cpack-wix-cygwin'Brad King2017-10-169-17/+193
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e1409101 cpack wix: support WiX generator on Cygwin e258fe03 cpack wix: fix path error on cygwin Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1367
| * | | | | | | | | cpack wix: support WiX generator on CygwinStephen Sorley2017-10-138-16/+192
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cygwin-built CMake now converts paths from Cygwin to Windows form (using cygpath -w) before they're passed to WiX. The Wix generator on Cygwin requires the libuuid-dev package when building CMake. However, the DLL it links to is installed by default as part of Cygwin's core libs, so it does not need to be distributed. If libuuid-dev isn't available, CMake is simply built without Wix support on Cygwin.
| * | | | | | | | | cpack wix: fix path error on cygwinStephen Sorley2017-10-131-1/+1
| | |_|_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Under Cygwin, file(TO_CMAKE_PATH...) outputs invalid paths when given a Windows path as input (the colon after the drive letter gets replaced by a semicolon). As a workaround, just use a string replace to change the slashes instead.
* | | | | | | | | Merge topic 'cpack-dmg-errors'Brad King2017-10-161-6/+14
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1943dc6b cmCPackDragNDropGenerator: Improve error reporting Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1379
| * | | | | | | | | cmCPackDragNDropGenerator: Improve error reportingClinton Stimpson2017-10-121-6/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When running hdiutil and other commands, capture errors and log them.
* | | | | | | | | | Merge topic 'update-kwsys'Brad King2017-10-165-27/+40
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | df92617b Merge branch 'upstream-KWSys' into update-kwsys e44b0cb2 KWSys 2017-10-12 (ef0ad34d) Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1384
| * \ \ \ \ \ \ \ \ \ Merge branch 'upstream-KWSys' into update-kwsysBrad King2017-10-135-27/+40
| |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * upstream-KWSys: KWSys 2017-10-12 (ef0ad34d)
| | * | | | | | | | | | KWSys 2017-10-12 (ef0ad34d)KWSys Upstream2017-10-135-27/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Code extracted from: https://gitlab.kitware.com/utils/kwsys.git at commit ef0ad34d280f0553fc4f6e7202a5e7d6241cdc9c (master). Upstream Shortlog ----------------- Rolf Eike Beer (2): 8717ac15 DynamicLoader: use std::string instead of strcpy() + strcat() 88d4dd4b CommandLineArguments: use std::string in GenerateHelp() Wouter Klouwen (1): 749b7506 ProcessUNIX: Use monotonic clock in kwsysProcessTimeGetCurrent() for POSIX
* | | | | | | | | | | | CMake Nightly Date StampKitware Robot2017-10-161-1/+1
| | | | | | | | | | | |