diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2016-04-06 18:19:05 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2016-04-06 18:19:05 +0200 |
commit | 62496c3c676d0b8d34452f60d5a666eb40d9ae6a (patch) | |
tree | 4c15d3b5152de791571d02ec7f5b8ed20778298e /cmake | |
parent | a163b0075d1ff54f619b93bdb0a31c3f8f6689de (diff) | |
download | pcitool-62496c3c676d0b8d34452f60d5a666eb40d9ae6a.tar.gz pcitool-62496c3c676d0b8d34452f60d5a666eb40d9ae6a.tar.bz2 pcitool-62496c3c676d0b8d34452f60d5a666eb40d9ae6a.tar.xz pcitool-62496c3c676d0b8d34452f60d5a666eb40d9ae6a.zip |
Fix also building of driver for bazaar-exported zip archives
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/build.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/build.cmake b/cmake/build.cmake index b0d803a..2488e4c 100644 --- a/cmake/build.cmake +++ b/cmake/build.cmake @@ -38,7 +38,7 @@ if (${_retcode} EQUAL 0) set(PCILIB_LAST_MODIFICATION ${_output}) endif (${_retcode} EQUAL 0) -if (BAZAAR_FOUND) +if (BAZAAR_FOUND AND EXISTS ${PCILIB_SOURCE_DIR}/.bzr) execute_process( COMMAND ${BAZAAR_EXECUTABLE} revno --tree ${PCILIB_SOURCE_DIR} RESULT_VARIABLE _retcode @@ -77,6 +77,6 @@ if (BAZAAR_FOUND) string(REGEX REPLACE "\n+" ";" PCILIB_REVISION_MODIFICATIONS "${_output}") # set(PCILIB_REVISION_MODIFICATIONS ${_output}) endif (${_retcode} EQUAL 0) -endif(BAZAAR_FOUND) +endif(BAZAAR_FOUND AND EXISTS ${PCILIB_SOURCE_DIR}/.bzr) configure_file(${PCILIB_SOURCE_DIR}/pcilib/build.h.in ${PCILIB_BINARY_DIR}/pcilib/build.h) |