Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add LLVM version info to CPPINTEROP_LLVM_* variables #214

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions cmake/CppInterOp/CppInterOpConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ endif()
if (@BUILD_SHARED_LIBS@)
set(_lib_suffix ${CMAKE_SHARED_LIBRARY_SUFFIX})
set(_lib_prefix ${CMAKE_SHARED_LIBRARY_PREFIX})
else()
else()
set(_lib_suffix ${CMAKE_STATIC_LIBRARY_SUFFIX})
set(_lib_prefix ${CMAKE_STATIC_LIBRARY_PREFIX})
endif()
Expand All @@ -39,10 +39,17 @@ set(CPPINTEROP_CMAKE_DIR "${_cmake}")
set(CPPINTEROP_INCLUDE_DIRS "${_include}")
set(CPPINTEROP_LIBRARIES "${_lib}")

set(CPPINTEROP_LLVM_VERSION "@LLVM_VERSION@")
set(CPPINTEROP_LLVM_VERSION_MAJOR "@LLVM_VERSION_MAJOR@")
set(CPPINTEROP_LLVM_VERSION_MINOR "@LLVM_VERSION_MINOR@")
set(CPPINTEROP_LLVM_VERSION_PATCH "@LLVM_VERSION_PATCH@")
set(CPPINTEROP_LLVM_VERSION_SUFFIX "@LLVM_VERSION_SUFFIX@")
set(CPPINTEROP_LLVM_PACKAGE_VERSION "@PACKAGE_VERSION@")

# Provide all our library targets to users.
if (@BUILD_SHARED_LIBS@)
add_library(clangCppInterOp SHARED IMPORTED)
else()
else()
add_library(clangCppInterOp STATIC IMPORTED)
endif()
set_target_properties(clangCppInterOp PROPERTIES
Expand Down
Loading