From d854bb5d8fd1e6db24ffdf8eb73e016f3bd6cf49 Mon Sep 17 00:00:00 2001 From: "N. Brouard" Date: Tue, 27 Oct 2015 15:58:38 +0000 Subject: [PATCH] *** empty log message *** --- CMakeLists.txt | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9ae6209..b90a587 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -242,13 +242,15 @@ ADD_TEST(biaspar IMaCh-${IMACH_VERSION} html/doc/biaspar.imach ) # endif() # endif() # Add a target to generate API documentation with Doxygen -find_package(Doxygen) -if(DOXYGEN_FOUND) -configure_file(${CMAKE_CURRENT_SOURCE_DIR}/latex/Doxyfile.in -${CMAKE_CURRENT_BINARY_DIR}/latex/Doxyfile @ONLY) -add_custom_target(doc -${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/latex/Doxyfile -WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/latex -COMMENT "Generating IMaCh documentation with Doxygen" VERBATIM -) +if(UNIX) + find_package(Doxygen) + if(DOXYGEN_FOUND) + configure_file(${CMAKE_CURRENT_SOURCE_DIR}/latex/Doxyfile.in + ${CMAKE_CURRENT_BINARY_DIR}/latex/Doxyfile @ONLY) + add_custom_target(doc + ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/latex/Doxyfile + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/latex + COMMENT "Generating IMaCh documentation with Doxygen" VERBATIM + ) + endif() endif() \ No newline at end of file -- 2.43.0