rename a_pid_fuzzy.order to a_pid_fuzzy.nrule
[liba.git] / cmake / FindZig.cmake
blob455f431772a175d871fe7643050501b40e3e8a52
1 #.rst:
2 # FindZig
3 # -------
5 # Find zig executable.
7 # Result Variables
8 # ^^^^^^^^^^^^^^^^
10 # This module defines the following variables:
12 # ``ZIG_FOUND``
14 # ``ZIG_EXECUTABLE``
16 # ``ZIG_VERSION``
18 include(${CMAKE_ROOT}/Modules/FindPackageHandleStandardArgs.cmake)
19 find_program(ZIG_EXECUTABLE zig DOC "Zig compiler")
20 mark_as_advanced(ZIG_EXECUTABLE)
22 if(EXISTS "${ZIG_EXECUTABLE}")
23   execute_process(COMMAND ${ZIG_EXECUTABLE} version
24     OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_VARIABLE ZIG_VERSION
25   )
26 endif()
28 find_package_handle_standard_args(Zig
29   FOUND_VAR
30     ZIG_FOUND
31   REQUIRED_VARS
32     ZIG_EXECUTABLE
33   VERSION_VAR
34     ZIG_VERSION