2019-03-05 21:45:17 +01:00
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
|
|
Remarks
|
|
|
|
)
|
|
|
|
|
|
|
|
set(SOURCES
|
|
|
|
libremarks.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/Remarks.exports)
|
|
|
|
|
2019-07-12 16:40:18 +02:00
|
|
|
add_llvm_library(Remarks SHARED INSTALL_WITH_TOOLCHAIN ${SOURCES})
|
2019-03-05 21:45:17 +01:00
|
|
|
|
|
|
|
install(FILES ${LLVM_MAIN_INCLUDE_DIR}/llvm-c/Remarks.h
|
|
|
|
DESTINATION include/llvm-c
|
|
|
|
COMPONENT Remarks)
|
|
|
|
|
|
|
|
if (APPLE)
|
|
|
|
set(REMARKS_VERSION ${LLVM_VERSION_MAJOR})
|
|
|
|
set_property(TARGET Remarks APPEND_STRING PROPERTY
|
|
|
|
LINK_FLAGS
|
|
|
|
" -compatibility_version 1 -current_version ${REMARKS_VERSION}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}")
|
|
|
|
endif()
|