CMake/Help/guide/tutorial
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
..
Complete Merge topic 'tutorial-cpack-source-archive' 2021-12-01 09:47:57 -05:00
Step1 Tutorial: Improve Step 1 2019-08-19 11:48:58 -04:00
Step2 Tutorial: Improve Step 2 2019-08-19 11:49:05 -04:00
Step3 Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
Step4 Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
Step5 Tutorial: Step 4 improvements 2021-10-07 11:53:51 -04:00
Step6 Tutorial: Simplify logic checking for cmath functions 2022-06-01 13:57:47 -04:00
Step7 Tutorial: Step 4 improvements 2021-10-07 11:53:51 -04:00
Step8 Tutorial: Package only one source archive 2021-11-30 12:31:55 -05:00
Step9 Tutorial: Package only one source archive 2021-11-30 12:31:55 -05:00
Step10 Tutorial: Package only one source archive 2021-11-30 12:31:55 -05:00
Step11 Tutorial: Package only one source archive 2021-11-30 12:31:55 -05:00
Step12 Tutorial: Order install(TARGETS) EXPORT option consistently with docs 2021-11-30 12:23:56 -05:00
A Basic Starting Point.rst Tutorial: Update Step 1 instructions 2021-09-30 12:04:52 -04:00
Adding a Custom Command and Generated File.rst Tutorial: Make code snippets linkable 2021-06-18 12:31:45 -04:00
Adding a Library.rst Help/guide: Fix wrong header file reference 2022-04-21 14:25:06 -04:00
Adding Export Configuration.rst Tutorial: Add documentation on Package helper functions 2021-09-30 14:43:28 -04:00
Adding Generator Expressions.rst Tutorial: Add version update instructions to Step 10 2021-10-05 09:22:33 -04:00
Adding Support for a Testing Dashboard.rst Tutorial: Enhance CTestConfig info in Step 8 2021-09-27 10:11:17 -04:00
Adding System Introspection.rst Tutorial: Simplify logic checking for cmath functions 2022-06-01 13:57:47 -04:00
Adding Usage Requirements for a Library.rst Tutorial: Make code snippets linkable 2021-06-18 12:31:45 -04:00
index.rst Tutorial: Provide a source archive when published on cmake.org 2022-04-28 13:36:20 -04:00
Installing and Testing.rst Tutorial: Step 4 improvements 2021-10-07 11:53:51 -04:00
Packaging an Installer.rst Tutorial: Fix casing of reference to License.txt 2022-03-21 15:58:26 -04:00
Packaging Debug and Release.rst Tutorial: Make code snippets linkable 2021-06-18 12:31:45 -04:00
Selecting Static or Shared Libraries.rst Tutorial: Make code snippets linkable 2021-06-18 12:31:45 -04:00
source.txt Tutorial: Provide a source archive when published on cmake.org 2022-04-28 13:36:20 -04:00