ctrauma 10 rokov pred
rodič
commit
d9e0cc3f7c
1 zmenil súbory, kde vykonal 4 pridanie a 4 odobranie
  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()