diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f1abf9b..74e048f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,12 @@ -- [v1.3.0](#v1.3.0) +- [v1.2.2](#v1.2.2) - [v1.2.1](#v1.2.1) - [v1.2.0](#v1.2.0) - [v1.1.0](#v1.1.0) - [v1.0.0](#v1.0.0) -## v1.3.0 +## v1.2.2 * Support for `arm/arm64`. ([#19](https://github.com/odygrd/quill/issues/19)) +* Add a cmake option `QUILL_ENABLE_INSTALL` to enable cpack ## v1.2.1 * Improved `QUILL_RDTSC_CLOCK` tweak option. It is now possible to switch between using `rdtsc` or `std::chrono` clock without having to recompile quill as library. diff --git a/CMakeLists.txt b/CMakeLists.txt index 7e044c7c..5d0be174 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,6 +18,8 @@ option(QUILL_USE_VALGRIND "Use valgrind as the default memcheck tool in CTest (R option(QUILL_FMT_EXTERNAL "Use external fmt library instead of bundled" OFF) +option(QUILL_ENABLE_INSTALL "Enable CMake Install when Quill is not a master project" OFF) + #------------------------------------------------------------------------------------------------------- # Use newer policies if possible, up to most recent tested version of CMake. #------------------------------------------------------------------------------------------------------- diff --git a/quill/quill/CMakeLists.txt b/quill/quill/CMakeLists.txt index 3b900d14..c20f8605 100644 --- a/quill/quill/CMakeLists.txt +++ b/quill/quill/CMakeLists.txt @@ -160,7 +160,7 @@ if (QUILL_BUILD_TESTS AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/test) add_subdirectory(test) endif () -if (QUILL_MASTER_PROJECT) +if (QUILL_MASTER_PROJECT OR QUILL_ENABLE_INSTALL) # ---- Install ---- # include(GNUInstallDirs) include(CMakePackageConfigHelpers)