diff options
author | Brad King <brad.king@kitware.com> | 2022-06-01 17:30:51 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-06-01 17:57:47 (GMT) |
commit | 5c84eca2108c8b47a74391c732710c67e23adfa3 (patch) | |
tree | 2745fa69ace38875fcddc451e503d18be0a9ca0b /CONTRIBUTING.rst | |
parent | 18be0f926789ad47d70e54e57f34b2ee4f297307 (diff) | |
download | CMake-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