/alps/pcitool

To get this branch, use:
bzr branch http://darksoft.org/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to cmake/build.cmake

  • Committer: Suren A. Chilingaryan
  • Date: 2016-04-06 16:19:05 UTC
  • Revision ID: csa@suren.me-20160406161905-2feo9idsopsjqlhh
Fix also building of driver for bazaar-exported zip archives

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
    set(PCILIB_LAST_MODIFICATION ${_output})
39
39
endif (${_retcode} EQUAL 0)
40
40
 
41
 
if (BAZAAR_FOUND)
 
41
if (BAZAAR_FOUND AND EXISTS ${PCILIB_SOURCE_DIR}/.bzr)
42
42
    execute_process(
43
43
        COMMAND ${BAZAAR_EXECUTABLE} revno --tree ${PCILIB_SOURCE_DIR}
44
44
        RESULT_VARIABLE _retcode
77
77
        string(REGEX REPLACE "\n+" ";" PCILIB_REVISION_MODIFICATIONS "${_output}")
78
78
#       set(PCILIB_REVISION_MODIFICATIONS ${_output})
79
79
    endif (${_retcode} EQUAL 0)
80
 
endif(BAZAAR_FOUND)
 
80
endif(BAZAAR_FOUND AND EXISTS ${PCILIB_SOURCE_DIR}/.bzr)
81
81
 
82
82
configure_file(${PCILIB_SOURCE_DIR}/pcilib/build.h.in ${PCILIB_BINARY_DIR}/pcilib/build.h)