diff options
author | Craig Scott <craig.scott@crascit.com> | 2020-05-16 02:20:36 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2020-05-16 02:20:36 (GMT) |
commit | cb8f7e3aad11887b57f8a1744146a2b1905df35e (patch) | |
tree | d052ae228e99f65559dc235c97f9a7b00f362fe1 /Tests/FindDoxygen | |
parent | ec1b3992dbfb54edb777988766440295f1f1f1d3 (diff) | |
download | CMake-cb8f7e3aad11887b57f8a1744146a2b1905df35e.zip CMake-cb8f7e3aad11887b57f8a1744146a2b1905df35e.tar.gz CMake-cb8f7e3aad11887b57f8a1744146a2b1905df35e.tar.bz2 |
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.
Diffstat (limited to 'Tests/FindDoxygen')
-rw-r--r-- | Tests/FindDoxygen/SimpleTest/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/FindDoxygen/SimpleTest/CMakeLists.txt b/Tests/FindDoxygen/SimpleTest/CMakeLists.txt index 332cecc..deec4fd 100644 --- a/Tests/FindDoxygen/SimpleTest/CMakeLists.txt +++ b/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" |