← Commit list

372401f969

Viktor Szakats
Viktor Szakats
2026-06-20
SUCCESS Duration: 171s

Subject

INSTALL-CMAKE.md: document CMake environment variables

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

docs/INSTALL-CMAKE.md+11 -0
@@ -313,6 +313,17 @@ target_link_libraries(my_target PRIVATE CURL::libcurl)
- `CURL_BUILDINFO`: Print `buildinfo.txt` if set.
- `CURL_CI`: Assume running under CI if set.
+## Environment (via CMake)
+
+- `CC`: Set C compiler. Alternative to `CMAKE_C_COMPILER` option.
+- `CFLAGS`: Pass custom C compiler flags. Alternative to `CMAKE_C_FLAGS` option.
+- `CMAKE_GENERATOR`: Alternative to `-G` command-line option.
+- `DESTDIR`: Set install destination directory.
+- `LDFLAGS`: Pass custom linker flags.
+
+Details via CMake
+[envvars](https://cmake.org/cmake/help/latest/manual/cmake-env-variables.7.html).
+
## CMake options
- `CMAKE_BUILD_TYPE`: (see CMake)