From 4b969ccd377f8cc643738135efacebe6761a1068 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Wed, 3 Aug 2016 15:26:22 +0200 Subject: Fix cmake configuration while building without pcitool --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3