summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2016-08-03 15:26:22 +0200
committerSuren A. Chilingaryan <csa@suren.me>2016-08-03 15:26:22 +0200
commit4b969ccd377f8cc643738135efacebe6761a1068 (patch)
tree018d3240420e1b6caa34b8d415d5066ffab43a86
parente9d114839b813240b460be4ef7d1bfb7560a2482 (diff)
downloadpcitool-4b969ccd377f8cc643738135efacebe6761a1068.tar.gz
pcitool-4b969ccd377f8cc643738135efacebe6761a1068.tar.bz2
pcitool-4b969ccd377f8cc643738135efacebe6761a1068.tar.xz
pcitool-4b969ccd377f8cc643738135efacebe6761a1068.zip
Fix cmake configuration while building without pcitool
-rw-r--r--CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6a21796..92ff3b5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -179,7 +179,9 @@ if(EXISTS ${CMAKE_SOURCE_DIR}/.bzr/ OR NOT EXISTS ${CMAKE_SOURCE_DIR}/pcilib/bui
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
)
add_dependencies(pcilib build)
- add_dependencies(pci build)
+ if (NOT DISABLE_PCITOOL)
+ add_dependencies(pci build)
+ endif (NOT DISABLE_PCITOOL)
# We need to generate build.h for source releases
add_custom_target(dist_clean make clean -C driver