Files @ r26032:c542cabb8e9c
Branch filter:

Location: cpp/openttd-patchpack/source/cmake/FindGrfcodec.cmake

Loïc Guilloux
Fix #9630: intro game could zoom in/out more than allowed by settings (#9633)

Also fixes #9622
# Autodetect grfcodec and nforenum.
#

find_program(GRFCODEC_EXECUTABLE grfcodec)
find_program(NFORENUM_EXECUTABLE nforenum)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Grfcodec
    FOUND_VAR GRFCODEC_FOUND
    REQUIRED_VARS
        GRFCODEC_EXECUTABLE
        NFORENUM_EXECUTABLE
)