Skip to content

Commit 3654242

Browse files
ax3lFrancescAlted
authored andcommitted
Clone zlib-ng to build, not source directory
1 parent 9cc30a4 commit 3654242

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

CMakeLists.txt

+4-5
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,10 @@ if(NOT DEACTIVATE_ZLIB)
190190
message(STATUS "Using ZLIB-NG external sources for ZLIB support.")
191191
include(FetchContent)
192192
FetchContent_Declare(z-ng
193-
GIT_REPOSITORY https://github.com/zlib-ng/zlib-ng
194-
GIT_TAG 2.1.3
195-
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/internal-complibs/zlib-ng
196-
SUBBUILD_DIR internal-complibs/zlib-ng/subbuild
197-
BINARY_DIR internal-complibs/zlib-ng/build
193+
GIT_REPOSITORY https://github.com/zlib-ng/zlib-ng
194+
GIT_TAG 2.1.3
195+
SOURCE_DIR ${PROJECT_BINARY_DIR}/blosc2-internal-complibs/zlib-ng
196+
BUILD_IN_SOURCE 0
198197
)
199198
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
200199
option(BUILD_SHARED_LIBS "" OFF)

0 commit comments

Comments
 (0)