Skip to content
Snippets Groups Projects
Commit 6964c8c1 authored by Adrian Sampson's avatar Adrian Sampson
Browse files

Use add_llvm_loadable_module

Can't get ordinary CMake add_library to work for whatever reason.
parent c754bf98
No related branches found
No related tags found
No related merge requests found
find_package(LLVM REQUIRED CONFIG) find_package(LLVM REQUIRED CONFIG)
list(APPEND CMAKE_MODULE_PATH "${LLVM_CMAKE_DIR}")
include(AddLLVM)
add_definitions(${LLVM_DEFINITIONS}) add_definitions(${LLVM_DEFINITIONS})
include_directories(${LLVM_INCLUDE_DIRS}) include_directories(${LLVM_INCLUDE_DIRS})
......
add_library(SkeletonPass MODULE Skeleton.cpp) add_llvm_loadable_module(SkeletonPass
# List your source files here.
Skeleton.cpp
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment