FindZig module finds the zig
language compiler executable on the system for use within CMake. To
use add FindZig.cmake
file to your CMake project add its location to the CMAKE_MODULE_PATH
. Now
find_package
will be able to find this module.
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
find_package(Zig 0.14.1 REQUIRED)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
find_package(Zig 0.14.1 EXACT REQUIRED)
See examples in the example folder.
Open a GitHub issue or drop a email at arjobmukherjee@gmail.com. I would love to hear your suggestions and feedbacks.