diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2022-07-27 17:29:09 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2022-07-27 17:29:09 (GMT) |
commit | 41f15193e5adfaaf9990b2d8d81bb0ec6c05572c (patch) | |
tree | 76edc6bb52a361a66ae085e11bd9a3baadd1ea24 /Help | |
parent | 22c535299019eb835dd0d5793d3b40e59d0cc6ee (diff) | |
download | CMake-41f15193e5adfaaf9990b2d8d81bb0ec6c05572c.zip CMake-41f15193e5adfaaf9990b2d8d81bb0ec6c05572c.tar.gz CMake-41f15193e5adfaaf9990b2d8d81bb0ec6c05572c.tar.bz2 |
VERIFY_INTERFACE_HEADER_SETS: Fall back to global languages
If a target doesn't have any source files, fall back to the global
list of enabled languages to determine the language of the header
file to verify.
Fixes: #23774
Diffstat (limited to 'Help')
-rw-r--r-- | Help/prop_tgt/VERIFY_INTERFACE_HEADER_SETS.rst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Help/prop_tgt/VERIFY_INTERFACE_HEADER_SETS.rst b/Help/prop_tgt/VERIFY_INTERFACE_HEADER_SETS.rst index 30c02f5..cbe8a6a 100644 --- a/Help/prop_tgt/VERIFY_INTERFACE_HEADER_SETS.rst +++ b/Help/prop_tgt/VERIFY_INTERFACE_HEADER_SETS.rst @@ -22,7 +22,9 @@ If the header's :prop_sf:`LANGUAGE` property is set, the value of that property is used to determine the language with which to compile the header file. Otherwise, if the target has any C++ sources, the header is compiled as C++. Otherwise, if the target has any C sources, the header is compiled as C. -Otherwise, the header file is not compiled. +Otherwise, if C++ is enabled globally, the header is compiled as C++. +Otherwise, if C is enabled globally, the header is compiled as C. Otherwise, +the header file is not compiled. If the project wishes to control which header sets are verified by this property, you can set :prop_tgt:`INTERFACE_HEADER_SETS_TO_VERIFY`. |