Skip to content

Commit

Permalink
update the typealong example in the cmake-syntax episode
Browse files Browse the repository at this point in the history
  • Loading branch information
code4yonglei committed Oct 1, 2024
1 parent b412f04 commit 8a4fda8
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions content/cmake-syntax.rst
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,11 @@ CMake offers boolean operator for string comparisons, such as ``STREQUAL`` for s

.. tab:: C++

You can find a scaffold project in the ``content/code/02_conditionals-cxx`` folder. A working solution is in the ``solution`` subfolder.
You can find a scaffold project in the ``content/code/02_conditionals/cxx`` folder. A working solution is in the ``solution`` subfolder.

.. tab:: Fortran

You can find a scaffold project in the ``content/code/02_conditionals-f`` folder. A working solution is in the ``solution`` subfolder.
You can find a scaffold project in the ``content/code/02_conditionals/fortran`` folder. A working solution is in the ``solution`` subfolder.


You can perform the same operation on a collection of items with ``foreach``:
Expand All @@ -223,24 +223,29 @@ The list of items is either space- or ;-separated. ``break()`` and ``continue()`

A working solution is in the ``solution`` subfolder.

It is instructive to browse the build folder for the project:
It is instructive to browse the build folder for the project using the ``tree`` command:

.. code-block:: bash

Check failure on line 228 in content/cmake-syntax.rst

View workflow job for this annotation

GitHub Actions / Build

Error in "code-block" directive:
ml tree/2.1.1
tree -L 2 build
$ tree -L 2 build
Then you can get the code structure like this:

.. code-block:: bash
build
├── CMakeCache.txt
├── CMakeFiles
│ ├── 3.18.4
│ ├── 3.27.7
│ ├── cmake.check_cache
│ ├── CMakeConfigureLog.yaml
│ ├── CMakeDirectoryInformation.cmake
│ ├── CMakeOutput.log
│ ├── CMakeTmp
│ ├── CMakeScratch
│ ├── compute-areas.dir
│ ├── geometry.dir
│ ├── Makefile2
│ ├── Makefile.cmake
│ ├── pkgRedirects
│ ├── progress.marks
│ └── TargetDirectories.txt
├── cmake_install.cmake
Expand Down

0 comments on commit 8a4fda8

Please sign in to comment.