summaryrefslogtreecommitdiffstats
path: root/CONTRIBUTING.rst
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-06-01 17:30:51 (GMT)
committerBrad King <brad.king@kitware.com>2022-06-01 17:57:47 (GMT)
commit5c84eca2108c8b47a74391c732710c67e23adfa3 (patch)
tree2745fa69ace38875fcddc451e503d18be0a9ca0b /CONTRIBUTING.rst
parent18be0f926789ad47d70e54e57f34b2ee4f297307 (diff)
downloadCMake-5c84eca2108c8b47a74391c732710c67e23adfa3.zip
CMake-5c84eca2108c8b47a74391c732710c67e23adfa3.tar.gz
CMake-5c84eca2108c8b47a74391c732710c67e23adfa3.tar.bz2
Tutorial: Simplify logic checking for cmath functions
Since commit 07223c5c27 (Tutorial: Update Step 5 to work on Windows, 2020-02-18, v3.18.0-rc1~655^2) the logic does not work on non-Windows platforms when cmake is re-run on an existing build tree. It is also more complicated than we'd like for a tutorial example. Avoid the need to consider the `m` library case by performing the check as C++. Since `check_cxx_symbol_exists` cannot handle overloaded functions like `exp` and `log`, check with `check_cxx_source_compiles` instead. This also presents a more general-purpose example in the tutorial. Fixes: #23524
Diffstat (limited to 'CONTRIBUTING.rst')
0 files changed, 0 insertions, 0 deletions