Skip to content

Commit

Permalink
Update CMAkeLists
Browse files Browse the repository at this point in the history
  • Loading branch information
sevilS committed Nov 28, 2023
1 parent 5adba12 commit f1ca51d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ message(STATUS "${PROJECT_NAME}: ${PROJECT_VERSION}")
option(OMVLL_FORCE_LOG_DEBUG "Force the log debug output" OFF)
option(OMVLL_PY_STANDALONE "Build OMVLL as a standalone Python module" OFF)

find_package(LLVM 14 REQUIRED CONFIG NO_DEFAULT_PATH)
find_package(LLVM 16 REQUIRED CONFIG NO_DEFAULT_PATH)

set(PYTHON_VERSION "3" CACHE STRING "Python version")
find_package(Python3 COMPONENTS Development Interpreter)
Expand All @@ -33,8 +33,8 @@ message(STATUS "Python lib: ${Python3_LIBRARIES}")
message(STATUS "Python include: ${Python3_INCLUDE_DIRS}")
message(STATUS "Python interpreter: ${Python3_EXECUTABLE}")

if(NOT "14" VERSION_EQUAL "${LLVM_VERSION_MAJOR}")
message(FATAL_ERROR "Found LLVM ${LLVM_VERSION_MAJOR}, but need LLVM 14")
if(NOT "16" VERSION_EQUAL "${LLVM_VERSION_MAJOR}")
message(FATAL_ERROR "Found LLVM ${LLVM_VERSION_MAJOR}, but need LLVM 16")
endif()

message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}")
Expand Down

0 comments on commit f1ca51d

Please sign in to comment.