| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 757cd21 commit 713601e
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,3 @@ | |||
| 1 | 1 | { | |
| 2 | - ".": "0.1.3" | ||
| 2 | + ".": "0.1.4" | ||
| 3 | 3 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,12 @@ | |||
| 1 | 1 | # Changelog | |
| 2 | 2 | ||
| 3 | + ## [0.1.4](https://github.com/nodejs/nbytes/compare/v0.1.3...v0.1.4) (2026-04-09) | ||
| 4 | + | ||
| 5 | + | ||
| 6 | + ### Bug Fixes | ||
| 7 | + | ||
| 8 | + * **build:** add `NBYTES_ENABLE_TESTING` CMake option ([#15](https://github.com/nodejs/nbytes/issues/15)) ([e1c6be3](https://github.com/nodejs/nbytes/commit/e1c6be3ed112f2375207c7626e10961e92d3f69f)) | ||
| 9 | + | ||
| 3 | 10 | ## [0.1.3](https://github.com/nodejs/nbytes/compare/v0.1.2...v0.1.3) (2026-02-18) | |
| 4 | 11 | ||
| 5 | 12 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | cmake_minimum_required(VERSION 3.28) | |
| 2 | - project(nbytes VERSION 0.1.3) # x-release-please-version | ||
| 2 | + project(nbytes VERSION 0.1.4) # x-release-please-version | ||
| 3 | 3 | ||
| 4 | 4 | set(CMAKE_CXX_STANDARD 20) | |
| 5 | 5 | set(CMAKE_CXX_STANDARD_REQUIRED True) | |
@@ -12,18 +12,26 @@ option(NBYTES_DEVELOPMENT_CHECKS "Enable development checks" OFF) | |||
| 12 | 12 | ||
| 13 | 13 | include(GNUInstallDirs) | |
| 14 | 14 | include(FetchContent) | |
| 15 | + include(CTest) | ||
| 16 | + | ||
| 17 | + option(NBYTES_ENABLE_TESTING "Enable testing" ${BUILD_TESTING}) | ||
| 15 | 18 | ||
| 16 | - FetchContent_Declare( | ||
| 17 | - googletest | ||
| 18 | - URL https://github.com/google/googletest/archive/03597a01ee50ed33e9dfd640b249b4be3799d395.zip | ||
| 19 | - ) | ||
| 20 | - # For Windows: Prevent overriding the parent project's compiler/linker settings | ||
| 21 | - set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) | ||
| 22 | - FetchContent_MakeAvailable(googletest) | ||
| 23 | 19 | ||
| 24 | 20 | add_subdirectory(src) | |
| 25 | - enable_testing() | ||
| 26 | - add_subdirectory(tests) | ||
| 21 | + | ||
| 22 | + if (NBYTES_ENABLE_TESTING) | ||
| 23 | + FetchContent_Declare( | ||
| 24 | + googletest | ||
| 25 | + URL https://github.com/google/googletest/archive/03597a01ee50ed33e9dfd640b249b4be3799d395.zip | ||
| 26 | + URL_HASH SHA256=edd885a1ab32b6999515a880f669efadb80b3f880215f315985fa3f6eca7c4d3 | ||
| 27 | + FIND_PACKAGE_ARGS NAMES GTest | ||
| 28 | + ) | ||
| 29 | + # For Windows: Prevent overriding the parent project's compiler/linker settings | ||
| 30 | + set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) | ||
| 31 | + FetchContent_MakeAvailable(googletest) | ||
| 32 | + | ||
| 33 | + add_subdirectory(tests) | ||
| 34 | + endif() | ||
| 27 | 35 | ||
| 28 | 36 | install( | |
| 29 | 37 | FILES include/nbytes.h | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -836,12 +836,12 @@ size_t SearchString(const char *haystack, size_t haystack_length, | |||
| 836 | 836 | ||
| 837 | 837 | // ============================================================================ | |
| 838 | 838 | // Version metadata | |
| 839 | - #define NBYTES_VERSION "0.1.3" // x-release-please-version | ||
| 839 | + #define NBYTES_VERSION "0.1.4" // x-release-please-version | ||
| 840 | 840 | ||
| 841 | 841 | enum { | |
| 842 | 842 | NBYTES_VERSION_MAJOR = 0, // x-release-please-major | |
| 843 | 843 | NBYTES_VERSION_MINOR = 1, // x-release-please-minor | |
| 844 | - NBYTES_VERSION_REVISION = 3, // x-release-please-patch | ||
| 844 | + NBYTES_VERSION_REVISION = 4, // x-release-please-patch | ||
| 845 | 845 | }; | |
| 846 | 846 | ||
| 847 | 847 | } // namespace nbytes | |
| Back | FazBrowse Home | New Git URL |
0 commit comments