소스 검색

Fix cmake configuration while building without pcitool

Suren A. Chilingaryan 7 년 전
부모
커밋
4b969ccd37
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      CMakeLists.txt

+ 3 - 1
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