Skip to content

Commit d6a1107

Browse files
committed
cmake: document C standard options
1 parent 4768d8a commit d6a1107

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -373,11 +373,13 @@ following:
373373
Compiler and linker options
374374
---------------------------
375375

376-
CMake lets you specify a few variables to control the behavior of the
377-
compiler and linker. These flags are rarely used but can be useful for
378-
64-bit to 32-bit cross-compilation.
376+
There are several options that control the behavior of the compiler and
377+
linker. These flags may be useful for cross-compilation or specialized
378+
setups.
379379

380380
- `CMAKE_C_FLAGS`: Set your own compiler flags
381+
- `C_STANDARD`: the C standard to compile against; defaults to `C90`
382+
- `C_EXTENSIONS`: whether compiler extensions are supported; defaults to `OFF`
381383
- `CMAKE_FIND_ROOT_PATH`: Override the search path for libraries
382384
- `ZLIB_LIBRARY`, `OPENSSL_SSL_LIBRARY` AND `OPENSSL_CRYPTO_LIBRARY`:
383385
Tell CMake where to find those specific libraries

0 commit comments

Comments
 (0)