CMake/Help/guide
Brad King 5c84eca210 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
2022-06-01 13:57:47 -04:00
..
ide-integration Merge topic 'ide_guide' 2022-01-13 15:23:04 -05:00
importing-exporting Help: use package-specific var for supported component list 2022-02-14 10:16:52 -05:00
tutorial Tutorial: Simplify logic checking for cmath functions 2022-06-01 13:57:47 -04:00
user-interaction Help: Update to VS ClangCL toolset in user-interaction example 2021-02-01 10:21:03 -05:00
using-dependencies Help: Cleanup guides 2020-09-25 15:29:05 -04:00