Skip to content

Commit 3e660c0

Browse files
committed
improve use of FetchContent_Declare in CMakeLists.txt
1 parent 1a22d0d commit 3e660c0

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

CMakeLists.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,18 +139,17 @@ FetchContent_Declare(
139139
GIT_REPOSITORY https://github.com/hurchalla/util.git
140140
GIT_TAG 9163344ee69f21a21cb8928dd30fc2ff15e94f0c
141141
)
142-
FetchContent_MakeAvailable(hurchalla_util)
143-
target_link_libraries(hurchalla_factoring
144-
INTERFACE hurchalla_util)
145-
146142

147143
FetchContent_Declare(
148144
modular_arithmetic
149145
GIT_REPOSITORY https://github.com/hurchalla/modular_arithmetic.git
150146
GIT_TAG cb5e74a154dc665ffd50ab04348677e596dd362a
151147
)
152-
FetchContent_MakeAvailable(modular_arithmetic)
148+
149+
FetchContent_MakeAvailable(hurchalla_util modular_arithmetic)
150+
153151
target_link_libraries(hurchalla_factoring
152+
INTERFACE hurchalla_util
154153
INTERFACE hurchalla_modular_arithmetic)
155154

156155

0 commit comments

Comments
 (0)