nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 22 lines 707 B view raw
1diff --git a/CMakeLists.txt b/CMakeLists.txt 2index f2efa3c..3f363dd 100644 3--- a/CMakeLists.txt 4+++ b/CMakeLists.txt 5@@ -11,15 +11,9 @@ endif() 6 option(NBYTES_DEVELOPMENT_CHECKS "Enable development checks" OFF) 7 8 include(GNUInstallDirs) 9-include(FetchContent) 10 11-FetchContent_Declare( 12- googletest 13- URL https://github.com/google/googletest/archive/03597a01ee50ed33e9dfd640b249b4be3799d395.zip 14-) 15-# For Windows: Prevent overriding the parent project's compiler/linker settings 16-set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) 17-FetchContent_MakeAvailable(googletest) 18+# Use find_package to use the gtest package provided by Nix 19+find_package(GTest REQUIRED) 20 21 add_subdirectory(src) 22 enable_testing()