diff --git a/CMakeLists.txt b/CMakeLists.txt index 2bd20054..7181806e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.13.4) if(NOT DEFINED BASE_LLVM_VERSION) - set(BASE_LLVM_VERSION 16.0.0) + set(BASE_LLVM_VERSION 16) endif(NOT DEFINED BASE_LLVM_VERSION) set(OPENCL_CLANG_VERSION ${BASE_LLVM_VERSION}.0) @@ -46,7 +46,7 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR) add_definitions(-DUSE_PREBUILT_LLVM) if(NOT PREFERRED_LLVM_VERSION) - set(PREFERRED_LLVM_VERSION "16.0.0") + set(PREFERRED_LLVM_VERSION "16") endif(NOT PREFERRED_LLVM_VERSION) message(STATUS "[OPENCL-CLANG] Looking for LLVM version ${PREFERRED_LLVM_VERSION}") find_package(LLVM ${PREFERRED_LLVM_VERSION} REQUIRED) diff --git a/README.md b/README.md index df41a952..12196029 100644 --- a/README.md +++ b/README.md @@ -70,13 +70,13 @@ make all -j`nproc` ##### Preferred LLVM version -By default, openclc-clang's cmake script is searching for LLVM 16.0.0. You can +By default, opencl-clang's cmake script is searching for LLVM 16. You can override target version of LLVM by using the `PREFERRED_LLVM_VERSION` cmake option: Example: ```bash -cmake -DPREFERRED_LLVM_VERSION="16.0.0" ../opencl-clang +cmake -DPREFERRED_LLVM_VERSION="16" ../opencl-clang ``` ##### Custom LLVM installation