From dc3f46d5a74090f306496729a7684d418ae291a8 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Sun, 31 May 2015 23:38:51 +0200 Subject: Fix for Travis CI build (attempt 9) --- CMakeLists.txt | 1 + cmake/version.cmake | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index aa1902a..d203959 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,6 +25,7 @@ option(win_static "Link with /MT in stead of /MD on windows" OFF) option(english_only "Only compile in support for the English language" OFF) list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake") +set(SOURCE "${CMAKE_SOURCE_DIR}") include(version) set(sqlite3 "0" CACHE INTERNAL "used in settings.h") diff --git a/cmake/version.cmake b/cmake/version.cmake index 2ebf42d..48de7b2 100644 --- a/cmake/version.cmake +++ b/cmake/version.cmake @@ -1,2 +1,2 @@ -file (STRINGS "VERSION" VERSION) +file (STRINGS "${SOURCE}/VERSION" VERSION) set(ENV{VERSION} "${VERSION}") -- cgit v0.12