Find7z — Extra CMake Modules 6.28.0 documentation

# Find7z

Try to find 7z.

If the 7z executable is not in your PATH, you can provide an alternative name or full path location with the `7z_EXECUTABLE` variable.

This will define the following variables:

`7z_FOUND`

  TRUE if 7z is available

`7z_EXECUTABLE`

  Path to 7z executable

If `7z_FOUND` is TRUE, it will also define the following imported target:

`7z::7z`

  Path to 7z executable

Note

Only works on Windows.

Deprecated: since 5.113, use `Find7Zip`.

Since 5.85.0.