~midori/midori/cmake-make-dist

« back to all changes in this revision

Viewing changes to cmake/FindVala.cmake

  • Committer: Tarmac
  • Author(s): Paweł Forysiuk, Christian Dywan
  • Date: 2013-11-05 18:00:59 UTC
  • mfrom: (6448.1.33 less-warnings)
  • Revision ID: tarmac-20131105180059-dypdrl07lyejesr3
Resolve compiler warnings in current trunk

Add EXTRA_WARNINGS flag to increase verbosity
Respect VALAC for the Vala compiler if defined
Sort out Vala 0.16 build issues
Make warnings fatal for bzr builds

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Copyright (C) 2013 Christian Dywan <christian@twotoasts.de>
2
2
 
3
 
find_program(VALA_EXECUTABLE NAMES valac)
 
3
find_program(VALA_EXECUTABLE NAMES $ENV{VALAC} valac)
4
4
if (NOT VALA_NOTFOUND)
5
5
    execute_process(COMMAND ${VALA_EXECUTABLE} "--version" OUTPUT_VARIABLE "VALA_VERSION")
6
6
    string(REPLACE "Vala " "" VALA_VERSION ${VALA_VERSION})