about summary refs log tree commit diff
path: root/pkgs/development/libraries/iniparser/remove-fetchcontent-usage.patch
blob: db96c37e6b2ca3ef3d773500e1bdf20cf57be3a3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index b28d151..33a6bcf 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -28,10 +28,8 @@ set(FETCHCONTENT_QUIET OFF)
 
 FetchContent_Declare(
   unity
-  GIT_REPOSITORY "https://github.com/throwtheswitch/unity.git"
-  GIT_PROGRESS TRUE
-  PATCH_COMMAND ${CMAKE_COMMAND} -E copy
-                ${CMAKE_CURRENT_LIST_DIR}/unity_config.h ./src/)
+  SOURCE_DIR @unitySrc@
+)
 
 FetchContent_MakeAvailable(unity)
 target_compile_definitions(unity PUBLIC UNITY_INCLUDE_CONFIG_H)