From b22b2389bcf122c0274f3eda8540ceb42e6a23ba Mon Sep 17 00:00:00 2001 From: Fs Date: Thu, 18 Jan 2024 08:06:26 +0800 Subject: [PATCH] fix pod2man detection Signed-off-by: Fs --- .github/workflows/cmake.yml | 4 ++-- doc/CMakeLists.txt | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index d0918cd..ba45d51 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -271,7 +271,7 @@ jobs: set path=${{ github.workspace }}\mingw\mingw${{ matrix.toolchain.bit }}\\bin;%path% mkdir -p "build" cd "build" - cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/openssl${{ env.FS_OPENSSL_VERSION_STR }}-${{ env.FS_OPENSSL_PACKAGE_STR }}" -DOPENSSL_ASM=${{ matrix.asm }} -DOPENSSL_THREADS=${{ matrix.threads }} -DPOD2MAN="C:\Strawberry\perl\bin\pod2man.bat" "${{ github.workspace }}/openssl-externalCMake" + cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/openssl${{ env.FS_OPENSSL_VERSION_STR }}-${{ env.FS_OPENSSL_PACKAGE_STR }}" -DOPENSSL_ASM=${{ matrix.asm }} -DOPENSSL_THREADS=${{ matrix.threads }} "${{ github.workspace }}/openssl-externalCMake" cmake --build . --parallel cmake --build . --parallel -t package - uses: actions/upload-artifact@v4 @@ -328,7 +328,7 @@ jobs: call "${{ matrix.toolchain.call }}" mkdir -p "build" cd "build" - cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/openssl${{ env.FS_OPENSSL_VERSION_STR }}-${{ env.FS_OPENSSL_PACKAGE_STR }}" -DOPENSSL_ASM=${{ matrix.asm }} -DOPENSSL_NASM=${{ matrix.asm }} -DPOD2MAN="C:\Strawberry\perl\bin\pod2man.bat" "${{ github.workspace }}/openssl-externalCMake" + cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/openssl${{ env.FS_OPENSSL_VERSION_STR }}-${{ env.FS_OPENSSL_PACKAGE_STR }}" -DOPENSSL_ASM=${{ matrix.asm }} -DOPENSSL_NASM=${{ matrix.asm }} "${{ github.workspace }}/openssl-externalCMake" cmake --build . --parallel cmake --build . --parallel -t package - uses: actions/upload-artifact@v4 diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 3ba0611..d1ec8b3 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -1,6 +1,11 @@ # SPDX-License-Identifier: Unlicense -find_program(POD2MAN "pod2man" REQUIRED) +get_filename_component(PERL_PATH "${PERL_EXECUTABLE}" DIRECTORY) +find_program(POD2MAN + NAMES "pod2man" "pod2man.bat" + HINTS "${PERL_PATH}" + REQUIRED +) set(OPENSSL_DOCS_LIST) set(OPENSSL_DOCS_FULLLIST)