diff options
author | Pierre Moreau <dev@pmoreau.org> | 2018-04-18 22:48:45 +0200 |
---|---|---|
committer | Alexey Sotkin <alexey.sotkin@intel.com> | 2018-04-20 11:01:51 +0300 |
commit | 01dddd07c475bcbb24a11931c649384c904e82d8 (patch) | |
tree | 72e2a1390aa188b2e7d85d6446def07a0e4c20b1 | |
parent | 4d2a651dff80cb1bf593606ad628d22c58cee12a (diff) |
Always define LLVM_SPIRV_VERSION
Currently, LLVM_SPIRV_VERSION is not defined when building in-tree,
resulting in the pkgconfig file having an empty version.
Fixes: 7b8cc990 ("cmake: rework to be able to build outside LLVM")
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 52ffc21..141f8b2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,11 +1,13 @@ cmake_minimum_required(VERSION 3.3) +set(LLVM_SPIRV_VERSION 0.1.0.0) + # check if we build inside llvm or not if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR) set(BUILD_EXTERNAL YES) project(LLVM_SPIRV VERSION - 0.1.0.0 + ${LLVM_SPIRV_VERSION} LANGUAGES CXX ) |