summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Dywan <christian.dywan@canonical.com>2013-11-14 19:32:49 +0100
committerChristian Dywan <christian.dywan@canonical.com>2013-11-14 19:32:49 +0100
commit8b81f7bfc5dbcda4a3fd0b2e57fd770110d39cdf (patch)
tree86adc3a179805cbad51a109a2602ca9f3d2cdcf7
parent077614a8db3e0cc14afd6567490b9d27aab7f6e5 (diff)
downloadmidori-8b81f7bfc5dbcda4a3fd0b2e57fd770110d39cdf.tar.gz
Fix check for found valac and mention VALAC variable
-rw-r--r--cmake/FindVala.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/FindVala.cmake b/cmake/FindVala.cmake
index dfa3573f..0c21639e 100644
--- a/cmake/FindVala.cmake
+++ b/cmake/FindVala.cmake
@@ -1,12 +1,12 @@
# Copyright (C) 2013 Christian Dywan <christian@twotoasts.de>
find_program(VALA_EXECUTABLE NAMES $ENV{VALAC} valac)
-if (NOT VALA_NOTFOUND)
+if (VALA_EXECUTABLE)
execute_process(COMMAND ${VALA_EXECUTABLE} "--version" OUTPUT_VARIABLE "VALA_VERSION")
string(REPLACE "Vala " "" VALA_VERSION ${VALA_VERSION})
string(STRIP ${VALA_VERSION} VALA_VERSION)
else ()
- message(FATAL_ERROR "valac not found")
+ message(FATAL_ERROR "valac not found - re-run with VALAC=valac-0.20 with an available valac version")
endif ()
macro(vala_require VALA_REQUIRED)