瀏覽代碼

FindDoxygen: Prevent tests from interfering with each other

When doing something like ctest -j8, the FindDoxygen.SimpleTest
test case would execute multiple doxygen sub-tests that then try
to create/write to the same output directory.
Craig Scott 5 年之前
父節點
當前提交
cb8f7e3aad
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Tests/FindDoxygen/SimpleTest/CMakeLists.txt

+ 2 - 0
Tests/FindDoxygen/SimpleTest/CMakeLists.txt

@@ -22,6 +22,7 @@ else()
     message(FATAL_ERROR "Import target Doxygen::doxygen not defined")
 endif()
 
+set(DOXYGEN_OUTPUT_DIRECTORY noArgs)
 doxygen_add_docs(docsNoArgs)
 if(NOT EXISTS "${PROJECT_BINARY_DIR}/Doxyfile.docsNoArgs")
     message(FATAL_ERROR "Missing generated file: Doxyfile.docsNoArgs")
@@ -30,6 +31,7 @@ if(NOT TARGET docsNoArgs)
     message(FATAL_ERROR "Target docsNoArgs not created")
 endif()
 
+set(DOXYGEN_OUTPUT_DIRECTORY withArgs)
 configure_file(spaces_in_name.cpp.in "spaces in name.cpp" COPYONLY)
 doxygen_add_docs(docsWithArgs
     "${CMAKE_CURRENT_BINARY_DIR}/spaces in name.cpp"