소스 검색

fix doc list

ctrauma 10 년 전
부모
커밋
d9e0cc3f7c
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      Build/CMake/Modules/AtomicDocList.cmake

+ 4 - 4
Build/CMake/Modules/AtomicDocList.cmake

@@ -1,7 +1,7 @@
 # create target to generate docs with clang based doc tool
-# NB: pretty brute force ATM
-if(EXISTS "/usr/local/bin/cldoc")
-   add_custom_target(AtomicEngineDocs 
+find_program(CLDOC cldoc)
+if(CLDOC)
+   add_custom_target(AtomicEngineDocs
     DEPENDS AtomicEditorDocs AtomicDocs
     )
-endif()
+endif()