~verzegnassi-stefano/+junk/ubuntu-terminal-app-uitk13

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Łukasz 'sil2100' Zemczak
  • Date: 2015-02-03 10:24:54 UTC
  • mto: This revision was merged to the branch mainline in revision 46.
  • Revision ID: lukasz.zemczak@canonical.com-20150203102454-6k4v14fdmf8q0amm
Don't use 'latest' as the BZR_REVNO as it is in no way a proper bzr revision number. Instead, use bzr revno to determine the correct rev as other click projects do.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
    set(QT_IMPORTS_DIR "/lib/${ARCH_TRIPLET}")
42
42
    set(BIN_DIR /lib/${ARCH_TRIPLET}/bin)
43
43
    if(NOT BZR_REVNO)
44
 
        set(BZR_REVNO "latest")
 
44
      execute_process(
 
45
        COMMAND bzr revno
 
46
        OUTPUT_VARIABLE BZR_REVNO
 
47
        WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
 
48
        OUTPUT_STRIP_TRAILING_WHITESPACE
 
49
      )
45
50
    endif(NOT BZR_REVNO)
46
51
 
47
52
    execute_process(