diff --git a/docs/src/content/docs/project/contributing.mdx b/docs/src/content/docs/project/contributing.mdx index 0f56b075..760fce68 100644 --- a/docs/src/content/docs/project/contributing.mdx +++ b/docs/src/content/docs/project/contributing.mdx @@ -144,11 +144,11 @@ This is the suite `Poller` in `test/CMakeLists.txt`: | --- | --- | | `` | The name of the suite. The program is `test/testsuite_` in the build directory. CTest puts `.` in front of each test name. | | `SOURCES …` | The source files. Add `${CMAKE_CURRENT_BINARY_DIR}/runner.cxx`. It contains the `main()` of the suite. | -| `LINKS …` | The libraries. The function adds `GTest::GTest`. The suites link `FairMQ`, the library target of the build. | +| `LINKS …` | The libraries. The function adds `GTest::gtest`. The suites link `FairMQ`, the library target of the build. | | `DEPENDS …` | Targets that CMake must build before the suite, for example `testhelper_runTestDevice`. | | `INCLUDES …` | The include directories. The suites need `${CMAKE_CURRENT_SOURCE_DIR}` for `runner.h` and the headers in `test/helper/`, and `${CMAKE_CURRENT_BINARY_DIR}` for the generated `TestEnvironment.h`. | | `DEFINITIONS …` | Compile definitions. | -| `ENVIRONMENT =:…` | Changes to the environment of each test, in the format of the CTest property `ENVIRONMENT_MODIFICATION`. CMake older than 3.22 ignores this argument. | +| `ENVIRONMENT =:…` | Changes to the environment of each test, in the format of the CTest property `ENVIRONMENT_MODIFICATION`. | | `TIMEOUT ` | The CTest timeout of each test. The default is 10 s. Most suites set 20 s. | | `RUN_SERIAL ` | `ON`: CTest runs no other test at the same time as a test of this suite. The default is `OFF`. No suite sets it at the moment. | diff --git a/docs/src/content/docs/reference/cmake.mdx b/docs/src/content/docs/reference/cmake.mdx index cca9b071..18292696 100644 --- a/docs/src/content/docs/reference/cmake.mdx +++ b/docs/src/content/docs/reference/cmake.mdx @@ -23,7 +23,7 @@ Some variables on this page are not declared as CMake options. `ccmake` and `cma ## Build options -[`CMakeLists.txt`](https://github.com/FairRootGroup/FairMQ/blob/dev/CMakeLists.txt) declares these options with the macro `fairmq_build_option()`. +[`CMakeLists.txt`](https://github.com/FairRootGroup/FairMQ/blob/dev/CMakeLists.txt) declares these options with `option()` and `cmake_dependent_option()`. | Option | Default | Requires | Description | | --- | --- | --- | --- | @@ -36,7 +36,7 @@ Some variables on this page are not declared as CMake options. `ccmake` and `cma ### Options that require other options -`BUILD_TESTING` and `BUILD_EXAMPLES` require `BUILD_FAIRMQ`. For these options, the macro in [`cmake/FairMQBuildOption.cmake`](https://github.com/FairRootGroup/FairMQ/blob/dev/cmake/FairMQBuildOption.cmake) uses `cmake_dependent_option()`: +`BUILD_TESTING` and `BUILD_EXAMPLES` require `BUILD_FAIRMQ`. For these options, [`CMakeLists.txt`](https://github.com/FairRootGroup/FairMQ/blob/dev/CMakeLists.txt) uses `cmake_dependent_option()`: - When `BUILD_FAIRMQ` is `ON`, you can set the two options. - When `BUILD_FAIRMQ` is `OFF`, the two options are `OFF`, and CMake hides them. @@ -129,7 +129,7 @@ FairMQ sets the variables `CMAKE_CXX_FLAGS_` as normal variables. Thus a | Option | Default | Flag | Notes | | --- | --- | --- | --- | | `ENABLE_SANITIZER_ADDRESS` | `OFF` | `-fsanitize=address` | — | -| `ENABLE_SANITIZER_LEAK` | `OFF` | `-fsanitize=leak` | The tests use the suppressions in `test/leak_sanitizer_suppressions.txt`. This requires CMake 3.22 or later. | +| `ENABLE_SANITIZER_LEAK` | `OFF` | `-fsanitize=leak` | The tests use the suppressions in `test/leak_sanitizer_suppressions.txt`. | | `ENABLE_SANITIZER_UNDEFINED_BEHAVIOR` | `OFF` | `-fsanitize=undefined` | — | | `ENABLE_SANITIZER_THREAD` | `OFF` | `-fsanitize=thread` | Not together with the address or the leak sanitizer. CMake then shows a warning and ignores the option. | | `ENABLE_SANITIZER_MEMORY` | `OFF` | `-fsanitize=memory` | Clang only. Not together with the address, the thread or the leak sanitizer. | @@ -154,7 +154,7 @@ With `RUN_STATIC_ANALYSIS`, CMake also searches `include-what-you-use` (shown as | `CMAKE_INSTALL_PREFIX` | the CMake default | The install prefix. The summary shows it. | CMake | | `DISABLE_COLOR` | `OFF` | `ON`: no colors in the configure summary and in the output of the compiler. | [FairMQProjectSettings.cmake](https://github.com/FairRootGroup/FairMQ/blob/dev/cmake/FairMQProjectSettings.cmake) | | `ENABLE_CCACHE` | `OFF` | With the Ninja generator: compile through `ccache`, if CMake finds it. Other generators ignore it. For them, set `CMAKE_CXX_COMPILER_LAUNCHER=ccache`. | [FairMQProjectSettings.cmake](https://github.com/FairRootGroup/FairMQ/blob/dev/cmake/FairMQProjectSettings.cmake) | -| `FAIRMQ_TEST_LD_LIBRARY_PATH` | not set | A directory that CTest adds to the start of `LD_LIBRARY_PATH` of each test and each example test. It requires CMake 3.22 or later. The CI uses it to run the tests with a libstdc++ that has ThreadSanitizer instrumentation. | [test/CMakeLists.txt](https://github.com/FairRootGroup/FairMQ/blob/dev/test/CMakeLists.txt), [examples/CMakeLists.txt](https://github.com/FairRootGroup/FairMQ/blob/dev/examples/CMakeLists.txt) | +| `FAIRMQ_TEST_LD_LIBRARY_PATH` | not set | A directory that CTest adds to the start of `LD_LIBRARY_PATH` of each test and each example test. The CI uses it to run the tests with a libstdc++ that has ThreadSanitizer instrumentation. | [test/CMakeLists.txt](https://github.com/FairRootGroup/FairMQ/blob/dev/test/CMakeLists.txt), [examples/CMakeLists.txt](https://github.com/FairRootGroup/FairMQ/blob/dev/examples/CMakeLists.txt) | ## Compile definitions diff --git a/docs/src/content/docs/start/install.mdx b/docs/src/content/docs/start/install.mdx index 8848e20d..6affa3ed 100644 --- a/docs/src/content/docs/start/install.mdx +++ b/docs/src/content/docs/start/install.mdx @@ -16,7 +16,7 @@ The CI of FairMQ builds and tests FairMQ on Linux (Ubuntu 24.04) with GCC 12, 13 | Dependency | Minimum version | Notes | | --- | --- | --- | | C++ compiler | C++17 | | -| [CMake](https://cmake.org/) | 3.15 | | +| [CMake](https://cmake.org/) | 3.25 | | | [Boost](https://www.boost.org/) | 1.66 | With the libraries `container`, `program_options`, `filesystem`, `date_time` and `regex`. Boost 1.88 is not supported. | | [FairLogger](https://github.com/FairRootGroup/FairLogger) | 1.6.0 | | | [ZeroMQ](https://zeromq.org/) (`libzmq`) | 4.1.4 | The shared library `libzmq.so` and its headers. |