From 9b09ecc5b4c1fbd55c257e5c6399647011f0a442 Mon Sep 17 00:00:00 2001 From: zjyhjqs Date: Sun, 16 Mar 2025 19:41:41 +0800 Subject: [PATCH 1/4] remove redundant `,` and fix indentation --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index de97dd9..be4b6ce 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.7.2) project( - ghcfilesystem, - VERSION 1.5.15 + ghcfilesystem + VERSION 1.5.15 ) if (POLICY CMP0077) From e36ed76752126dae5e59b667156f24f35c0f5ec7 Mon Sep 17 00:00:00 2001 From: zjyhjqs Date: Sun, 16 Mar 2025 19:43:13 +0800 Subject: [PATCH 2/4] add CPack support --- CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index be4b6ce..912f3a6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.7.2) project( ghcfilesystem VERSION 1.5.15 + HOMEPAGE_URL "https://github.com/gulrak/filesystem" + LANGUAGES CXX ) if (POLICY CMP0077) @@ -87,4 +89,10 @@ if(GHC_FILESYSTEM_WITH_INSTALL) "${PROJECT_BINARY_DIR}/cmake/ghc_filesystem-config-version.cmake" DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/ghc_filesystem" ) + + set(CPACK_PACKAGE_VENDOR "gulraks") + set(CPACK_GENERATOR "TGZ") + set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE") + set(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.md") + include(CPack) endif() From 0c0fbf17fd4fe2ddec874365c61311d211e76f6d Mon Sep 17 00:00:00 2001 From: zjyhjqs Date: Sun, 16 Mar 2025 19:43:32 +0800 Subject: [PATCH 3/4] ignore all `*build*/` path --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index ac7a37a..3557877 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -/*build*/ +*build*/ .vs/ .vscode/ .idea/ From aad04168f5c9c7460b26e14b48bfa19fdfd0a33e Mon Sep 17 00:00:00 2001 From: zjyhjqs Date: Thu, 24 Apr 2025 00:17:24 +0800 Subject: [PATCH 4/4] keep project/package name same with Config.cmake --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 912f3a6..51fb3d8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.7.2) project( - ghcfilesystem + ghc_filesystem VERSION 1.5.15 HOMEPAGE_URL "https://github.com/gulrak/filesystem" LANGUAGES CXX