Browse Source

fix doc list

ctrauma 10 years ago
parent
commit
d9e0cc3f7c
1 changed files with 4 additions and 4 deletions
  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
 # 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
     DEPENDS AtomicEditorDocs AtomicDocs
     )
     )
-endif()
+endif()