mirror of
https://github.com/ziglang/zig.git
synced 2024-11-26 23:22:44 +00:00
22 lines
551 B
CMake
22 lines
551 B
CMake
# Copyright (c) 2014 Andrew Kelley
|
|
# This file is MIT licensed.
|
|
# See http://opensource.org/licenses/MIT
|
|
|
|
# LLVM_FOUND
|
|
# LLVM_INCLUDE_DIR
|
|
# LLVM_LIBRARIES
|
|
|
|
find_path(LLVM_INCLUDE_DIR NAMES llvm-c/Core.h)
|
|
|
|
find_program(LLVM_CONFIG_EXE llvm-config)
|
|
|
|
execute_process(
|
|
COMMAND ${LLVM_CONFIG_EXE} --libs
|
|
OUTPUT_VARIABLE LLVM_LIBRARIES
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(LLVM DEFAULT_MSG LLVM_LIBRARIES LLVM_INCLUDE_DIR)
|
|
|
|
mark_as_advanced(LLVM_INCLUDE_DIR LLVM_LIBRARIES)
|