Skip to content

Commit

Permalink
Fix version for find_package search
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-penev committed Sep 24, 2023
1 parent 30bc980 commit d6fa701
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cmake/CppInterOpConfigVersion.cmake.in
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
set(PACKAGE_VERSION "1.0.0")
set(PACKAGE_VERSION "1.1.0")

# LLVM is API-compatible only with matching major.minor versions
# and patch versions not less than that requested.
if("1.0" VERSION_EQUAL
"${PACKAGE_FIND_VERSION_MAJOR}.${PACKAGE_FIND_VERSION_MINOR}"
if("1.1" VERSION_EQUAL "${PACKAGE_FIND_VERSION_MAJOR}.${PACKAGE_FIND_VERSION_MINOR}"
AND NOT "0" VERSION_LESS "${PACKAGE_FIND_VERSION_PATCH}")
set(PACKAGE_VERSION_COMPATIBLE 1)
if("0" VERSION_EQUAL
"${PACKAGE_FIND_VERSION_PATCH}")
if("0" VERSION_EQUAL "${PACKAGE_FIND_VERSION_PATCH}")
set(PACKAGE_VERSION_EXACT 1)
endif()
endif()

0 comments on commit d6fa701

Please sign in to comment.