Fred Baksik
db486da265
Toolchain: Update documentation for initial compiler flags
2020-08-03 12:34:46 -04:00
Brad King
c7b7547d8d
Merge topic 'cmake-E-create_hardlink'
...
2fad00940d cmake: Add -E create_hardlink
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5015
2020-07-16 10:19:12 -04:00
Sibi Siddharthan
2fad00940d
cmake: Add -E create_hardlink
...
Fixes : #20950
Signed-off-by: Sibi Siddharthan <sibisiddharthan.github@gmail.com >
2020-07-15 20:22:04 +05:30
Tor Arne Vestbø
17e13fb6d0
macOS: Always pick latest SDK if user has not set one explicitly
...
Apple tech note QA1806 recommends always building against the latest
SDK.
Fixes : #20949
2020-07-14 15:43:45 +02:00
Brad King
8d268f57b4
Merge topic 'cuda-memcheck'
...
cee92a9fb0 Help: add release notes for CTest cuda-memcheck support
f38e4a1871 Tests: Add cases for CTest cuda-memcheck parser
fe062800f0 CTest: add cuda-memcheck support
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: tcojean <terry.cojean@kit.edu >
Merge-request: !4952
2020-07-13 07:58:38 -04:00
Tobias Ribizel
cee92a9fb0
Help: add release notes for CTest cuda-memcheck support
2020-07-09 19:08:36 +02:00
Craig Scott
8975c2a55b
Merge topic 'remove-warn-unused-vars'
...
df6b077625 cmake: Remove broken '--warn-unused-vars' option
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Ben Boeckel <ben.boeckel@kitware.com >
Merge-request: !4953
2020-07-01 07:03:54 -04:00
Brad King
b7af2811ae
Merge topic 'configure_file-permission-control'
...
27b03281e2 configure_file: Add option to control file permissions transfer to copy
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4941
2020-07-01 07:03:03 -04:00
Brad King
57ea001247
Merge topic 'FindTIFF-tiffxx'
...
a468cc431c FindTIFF: add component CXX to include the C++ wrapper libtiffxx
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4934
2020-07-01 07:02:09 -04:00
Kyle Edwards
b67eb65688
Help: Update FileAPI codemodel version to 2.2, add release notes
...
This fixes the documentation which should have been fixed in 7d6861f3 .
2020-06-30 14:05:23 -04:00
Rahul Gottipati
27b03281e2
configure_file: Add option to control file permissions transfer to copy
...
Issue: #20866
2020-06-30 11:20:41 -04:00
Brad King
f67a787a38
Merge topic 'find_vulkan_glslc'
...
467509d767 FindVulkan: Support for finding glslc
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4944
2020-06-30 07:27:27 -04:00
Brad King
df6b077625
cmake: Remove broken '--warn-unused-vars' option
...
This option has been broken since commit b9f9915516 (cmMakefile: Remove
VarUsageStack., 2015-05-17, v3.3.0-rc1~52^2). That commit removed the
check that an initialized variable has actually been used and caused the
option to warn on every variable ever set. This was not caught by the
test suite because the test for the feature only checked that warnings
appear when needed and not that they do not appear when not needed.
The option was never very practical to use. Remove it to avoid the
runtime cost of usage tracking and checks for every variable (which we
were doing even when the option was not used).
2020-06-29 17:23:27 -04:00
Joachim Wuttke (h)
a468cc431c
FindTIFF: add component CXX to include the C++ wrapper libtiffxx
...
Fixes : #20860
2020-06-29 11:55:22 -04:00
Ryan Kawicki
467509d767
FindVulkan: Support for finding glslc
...
The GLSL SPIR-V compiler is part of the Vulkan SDK and may be used
by projects for compiling shaders as part of the build process.
This is not strictly required to build a Vulkan application, which
is why the variable is not part of the REQUIRED_VARs for the module.
2020-06-26 20:57:06 -05:00
Kyle Edwards
5fc7c14528
Merge topic 'install-default-directory-permissions'
...
d4812a955b cmake-install: implement default directory permissions
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4927
2020-06-26 10:26:57 -04:00
Brad King
ab83a21933
Merge topic 'visual-studio-android'
...
6051a49c78 Visual Studio: Add Android support
bbcaf9689e Refactor: Add IsAndroidGuiExecutable() method to cmTarget
14456923bd cmGlobalVisualStudio10Generator: Move variable initialization to header
d5b5c19278 cmGlobalGenerator: FindMakeProgram() before CMakeDetermineSystem
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4898
2020-06-26 09:35:31 -04:00
Asit Dhal
d4812a955b
cmake-install: implement default directory permissions
...
provide an argument for default directory permissions in cmake --install
Fixes : #20700
2020-06-25 14:43:30 -04:00
Kyle Edwards
6051a49c78
Visual Studio: Add Android support
2020-06-24 08:41:09 -04:00
Craig Scott
4f90fef85f
Merge topic 'deprecate-pre-2.8.12'
...
5845c218d7 Deprecate compatibility with CMake versions older than 2.8.12
7b07ccdd2b Tests/*Only: Update cmake_minimum_required versions
9b99b4bfc8 Tests/RunCMake: Update cmake_minimum_required versions
fcea4a3b45 cmStateSnapshot: Invert CanPopPolicyScope return value to match name
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Ben Boeckel <ben.boeckel@kitware.com >
Merge-request: !4897
2020-06-23 09:36:03 -04:00
Frédéric Simonis
9ffd2c70bf
FindSDL: Add SDL_INCLUDE_DIRS, SDL_LIBRARIES, and SDL::SDL
...
Also provide `SDL_VERSION[_{MAJOR,MINOR,PATCH}]`.
Fixes : #12911
2020-06-18 16:33:17 -04:00
Brad King
5845c218d7
Deprecate compatibility with CMake versions older than 2.8.12
...
Issue a deprecation warning on calls to `cmake_minimum_required` or
`cmake_policy` that set policies based on versions older than 2.8.12.
Note that the effective policy version includes `...<max>` treatment.
This is important in combination with commit ca24b70d31 (Export: Specify
a policy range in exported files, 2020-05-16, v3.18.0-rc1~133^2).
2020-06-18 09:52:05 -04:00
Brad King
f2c1debe40
Merge topic 'cpack-pre-and-post-scripts'
...
915409af49 CPack: Introduce pre- and post- build actions
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4846
2020-06-16 09:08:01 -04:00
Brad King
9d45a8be08
find_program: Find programs that are executable but not readable
...
This fix was first made by commit 86e6349ef7 (find_program: Find
programs that are executable but not readable, 2020-04-04,
v3.18.0-rc1~372^2) but was reverted for compatibility. Re-introduce it
with a policy for compatibility.
Fixes : #10468
2020-06-15 11:58:47 -04:00
Alex Turbov
915409af49
CPack: Introduce pre- and post- build actions
...
CPack learned the `CPACK_PRE_BUILD_SCRIPTS`, `CPACK_POST_BUILD_SCRIPTS`,
and `CPACK_PACKAGE_FILES` variables.
The first two are lists of scripts to perform
- after pre-install files into a staging directory and before
producing the resulting packages
- after produsing the packages
The post-build script(s) also get the list of actually produced
packages in the `CPACK_PACKAGE_FILES`.
Issue: #19077
2020-06-15 11:06:41 -04:00
Brad King
6f6651f728
Add deprecation warnings for policies CMP0072 and below
...
The OLD behaviors of all policies are deprecated, but only by
documentation. Add an explicit deprecation diagnostic for policies
introduced in CMake 3.11 and below to encourage projects to port away
from setting policies to OLD.
2020-06-12 11:04:56 -04:00
Brad King
068551cfb2
Merge topic 'cmake-gui-qt5-only'
...
4037beb747 QtDialog: remove Qt4 definition
ce9dbceb42 QtDialog: remove Qt4-only code
8ea50749da QtDialog: use Qt5's imported targets
4ccc9921be QtDialog: use qt5 functions for special Qt sources
e4d6015460 QtDialog: remove Qt4 support
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4836
2020-06-12 10:11:54 -04:00
Alex Turbov
a6e1b20bab
CPack External: Introduce CPACK_EXTERNAL_BUILT_PACKAGES
...
The `CPACK_EXTERNAL_PACKAGE_SCRIPT` script may set this list variable to the
full paths of generated package files. CPack copy these files from the stage
directory back to the top build directory and possibly produce checksum files
if the `CPACK_PACKAGE_CHECKSUM` is set.
2020-06-05 08:56:32 -04:00
Ben Boeckel
e4d6015460
QtDialog: remove Qt4 support
2020-06-05 08:46:40 -04:00
Brad King
21218f5c12
Begin post-3.18 development
2020-06-05 08:34:10 -04:00
Brad King
47a47f5ce0
Help: Drop development topic notes to prepare release
...
Release versions do not have the development topic section of
the CMake Release Notes index page.
2020-06-05 08:33:59 -04:00
Brad King
ab6b5c01ea
Help: Consolidate 3.18 release notes
...
Run the `Utilities/Release/consolidate-relnotes.bash` script to move
notes from `Help/release/dev/*` into `Help/release/3.18.rst`.
2020-06-03 06:17:54 -04:00
Marc Chevrier
056489d567
add_library/add_executable: allow local alias to imported targets
...
Fixes : #20641
2020-06-02 17:11:47 +02:00
Brad King
855a7158ed
Merge topic 'target_link_libraries-self-link-is-an-error'
...
9436ad35df target_link_libraries: self-link through ALIAS is an error
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4826
2020-06-02 07:53:40 -04:00
Marc Chevrier
9436ad35df
target_link_libraries: self-link through ALIAS is an error
...
Fixes : #19617
2020-05-30 11:47:39 +02:00
Craig Scott
8aa4d51ec5
ExternalProject: Add missing release note for git update strategy
...
This release note was mistakenly omitted from commit 0aea435aa1
(ExternalProject: Provide choice of git update strategies, 2020-02-12).
2020-05-29 12:10:33 -04:00
Marc Chevrier
1eca5993e2
ALIAS target: cannot overwrite an existing target
...
Fixes : #19616
2020-05-28 12:56:59 -04:00
Marc Chevrier
af96c0f4fa
CheckLinkerFlag: Add module to check validity of linker flags
...
Fixes : #15934
2020-05-25 10:57:14 -04:00
Brad King
62816ff88c
Merge topic 'fortran-preprocess-property'
...
3888de23da Ninja: Skip Fortran preprocessing if Fortran_PREPROCESS is OFF
66c4e87282 Ninja: Add helper functions to generate Fortran build
5cca1ec893 Ninja: Add helper functions to generate Fortran preprocess rule
b0a6161190 Fortran: Add Fortran_PREPROCESS property
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4659
2020-05-22 10:35:10 -04:00
Craig Scott
1b0049680b
Merge topic 'cmake_language-rename-from-cmake_command'
...
94c1e4fdb3 cmake_language: Rename command from cmake_command
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4774
2020-05-22 10:25:29 -04:00
Brad King
94c1e4fdb3
cmake_language: Rename command from cmake_command
...
Also rename the `INVOKE` signature to `CALL`.
Fixes : #20732
2020-05-21 13:36:52 -04:00
Brad King
9ec09f22ff
Merge topic 'multi-ninja-pch-msvc'
...
f6cb1e646c Multi-Ninja: Fix PCHs for Visual C++
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4771
2020-05-21 11:52:12 -04:00
Peter Hill
b0a6161190
Fortran: Add Fortran_PREPROCESS property
...
Issue: #18870
2020-05-21 11:44:14 -04:00
Brad King
00d6e41a07
Merge topic 'ctest-log-environment'
...
a1612af749 CTest: Log environment variables as a test measurement
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4760
2020-05-20 09:11:03 -04:00
Cristian Adam
f6cb1e646c
Multi-Ninja: Fix PCHs for Visual C++
...
Fixes : #20711
2020-05-20 11:20:38 +02:00
Kyle Edwards
a1612af749
CTest: Log environment variables as a test measurement
2020-05-19 10:26:57 -04:00
Brad King
d7e82a11d5
Merge topic 'fetchcontent-SOURCE_SUBDIR'
...
592085b94b FetchContent: Add support for SOURCE_SUBDIR
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4757
2020-05-18 12:31:54 -04:00
Craig Scott
592085b94b
FetchContent: Add support for SOURCE_SUBDIR
...
Fixes : #19875
2020-05-16 17:01:10 +10:00
Raul Tambre
5df21adf46
CUDA: Add support for Clang compiler
...
When crosscompiling we pass the sysroot.
We need to try various architecture flags. Clang doesn't automatically
select one that works. First try the ones that are more likely to work
for modern installations:
* <=sm_50 is deprecated since CUDA 10.2, try sm_52 first for
future compatibility.
* <=sm_20 is removed since CUDA 9.0, try sm_30.
Otherwise fallback to Clang's current default. Currently that's `sm_20`,
the lowest it supports.
Separable compilation isn't supported yet.
Fixes : #16586
2020-05-15 17:46:51 +03:00
Brad King
eb93b50be9
Merge topic 'source_file_scopes'
...
3d4b70ea64 set_source_files_properties: Allow specification of directory scope
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4661
2020-05-15 09:58:03 -04:00