From bab58c374ff069244d29e0022885324d96cfd5ee Mon Sep 17 00:00:00 2001 From: TGMarkiewicz Date: Wed, 26 May 2021 18:37:59 +0200 Subject: Fix building/installing docs with CMake Details: - During the installation of the package with CMake, it stops (via fail) when doc files should be copied. It was caused by changing current binary to current source CMake directory. --- doc/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index e0e33913..1f001707 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -25,7 +25,7 @@ else() "${PROJECT_SOURCE_DIR}/include/FLAC" "${PROJECT_SOURCE_DIR}/include/FLAC++") - install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/html/" + install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/html/" DESTINATION "${CMAKE_INSTALL_DOCDIR}/html/api") endif() -- cgit v1.2.1