From c48be439f1ae03f2726e30ac93fce3a667dc4be2 Mon Sep 17 00:00:00 2001 From: Haowei Hsu <71438617+hwhsu1231@users.noreply.github.com> Date: Tue, 19 Jul 2022 18:38:26 +0800 Subject: [PATCH] Add additional search paths for doxygen on Windows `find_program(DOXYGEN doxygen)` didn't find the executable automatically even if I installed Doxygen on Windows. Therefore, I added some additional search paths. --- doc/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 06848450..610d2bf1 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -1,4 +1,6 @@ -find_program(DOXYGEN doxygen) +find_program(DOXYGEN doxygen + PATHS "$ENV{ProgramFiles}/doxygen/bin" + "$ENV{ProgramFiles\(x86\)}/doxygen/bin") if (NOT DOXYGEN) message(STATUS "Target 'doc' disabled (requires doxygen)") return ()