From fc42a6200ee8ee0f0fa4a768576ea9a7e753404d Mon Sep 17 00:00:00 2001 From: Ivet Galabova Date: Mon, 9 Feb 2026 23:20:31 +0200 Subject: [PATCH 1/6] install readme and license and docs --- CMakeLists.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a8545ecb50..83a3b03219 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -562,7 +562,16 @@ if(ZLIB AND NOT TARGET ZLIB::ZLIB) find_package(ZLIB 1.2.3) endif() -install(FILES README.md LICENSE.txt THIRD_PARTY_NOTICES.md DESTINATION .) +install(FILES + README.md + LICENSE.txt + AUTHORS + CITATION.cff + CODE_OF_CONDUCT.md + CONTRIBUTING.md + FEATURES.md + DESTINATION ${CMAKE_INSTALL_DOCDIR} +) # Set default generator based on platform if(WIN32) From 5be8dbe8d644cdfe332ab0b35115aed101f03651 Mon Sep 17 00:00:00 2001 From: Ivet Galabova Date: Tue, 10 Feb 2026 11:42:55 +0200 Subject: [PATCH 2/6] third party --- CMakeLists.txt | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 83a3b03219..bca68580dd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -562,16 +562,23 @@ if(ZLIB AND NOT TARGET ZLIB::ZLIB) find_package(ZLIB 1.2.3) endif() -install(FILES - README.md - LICENSE.txt - AUTHORS - CITATION.cff - CODE_OF_CONDUCT.md - CONTRIBUTING.md - FEATURES.md - DESTINATION ${CMAKE_INSTALL_DOCDIR} -) +if (PYTHON_BUILD_SETUP) + install(FILES + README.md + LICENSE.txt + THIRD_PARTY_NOTICES.md + DESTINATION .) +else() + install(FILES + README.md + LICENSE.txt + AUTHORS + CITATION.cff + CODE_OF_CONDUCT.md + CONTRIBUTING.md + FEATURES.md + DESTINATION ${CMAKE_INSTALL_DOCDIR}) +endif() # Set default generator based on platform if(WIN32) From e305a94176fc5f6ec01aaf35ebd388f284627af9 Mon Sep 17 00:00:00 2001 From: Ivet Galabova Date: Tue, 10 Feb 2026 12:04:04 +0200 Subject: [PATCH 3/6] check for CMAKE_INSTALL_DOCDIR --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bca68580dd..9d9458fe4a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -562,7 +562,7 @@ if(ZLIB AND NOT TARGET ZLIB::ZLIB) find_package(ZLIB 1.2.3) endif() -if (PYTHON_BUILD_SETUP) +if (PYTHON_BUILD_SETUP AND NOT ${CMAKE_INSTALL_DOCDIR} STREQUAL "") install(FILES README.md LICENSE.txt From 474dd7646b2079e3fb74031a8cd8e5ccc1cf5d26 Mon Sep 17 00:00:00 2001 From: Ivet Galabova Date: Tue, 10 Feb 2026 12:08:28 +0200 Subject: [PATCH 4/6] or --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9d9458fe4a..84f5e1bb67 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -562,7 +562,7 @@ if(ZLIB AND NOT TARGET ZLIB::ZLIB) find_package(ZLIB 1.2.3) endif() -if (PYTHON_BUILD_SETUP AND NOT ${CMAKE_INSTALL_DOCDIR} STREQUAL "") +if (PYTHON_BUILD_SETUP OR ${CMAKE_INSTALL_DOCDIR} STREQUAL "") install(FILES README.md LICENSE.txt From 827d1ec0f8d86f15e9a9ef2637cceca29b2b9890 Mon Sep 17 00:00:00 2001 From: Ivet Galabova Date: Tue, 10 Feb 2026 12:10:42 +0200 Subject: [PATCH 5/6] syntax --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 84f5e1bb67..d931ba385b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -562,7 +562,7 @@ if(ZLIB AND NOT TARGET ZLIB::ZLIB) find_package(ZLIB 1.2.3) endif() -if (PYTHON_BUILD_SETUP OR ${CMAKE_INSTALL_DOCDIR} STREQUAL "") +if (PYTHON_BUILD_SETUP OR CMAKE_INSTALL_DOCDIR STREQUAL "") install(FILES README.md LICENSE.txt From 575cd9bd31856bb0f467fe338f4f963ff8772948 Mon Sep 17 00:00:00 2001 From: Ivet Galabova Date: Tue, 10 Feb 2026 12:14:15 +0200 Subject: [PATCH 6/6] special case tests only --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d931ba385b..e738fb6dbf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -562,7 +562,7 @@ if(ZLIB AND NOT TARGET ZLIB::ZLIB) find_package(ZLIB 1.2.3) endif() -if (PYTHON_BUILD_SETUP OR CMAKE_INSTALL_DOCDIR STREQUAL "") +if (PYTHON_BUILD_SETUP OR CMAKE_INSTALL_DOCDIR STREQUAL "" OR NOT BUILD_CXX) install(FILES README.md LICENSE.txt