Properly handle path with spaces (#228)

This commit is contained in:
Jiří Malák 2023-01-29 06:56:03 +01:00 committed by GitHub
parent 3aea6a98ef
commit 5a230efd2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ if (NOT zlib_POPULATED)
FetchContent_Populate(zlib) FetchContent_Populate(zlib)
endif() endif()
add_subdirectory(${zlib_SOURCE_DIR} ${zlib_BINARY_DIR} EXCLUDE_FROM_ALL) add_subdirectory("${zlib_SOURCE_DIR}" "${zlib_BINARY_DIR}" EXCLUDE_FROM_ALL)
set(ZLIB_LIBRARIES zlibstatic PARENT_SCOPE) set(ZLIB_LIBRARIES "zlibstatic" PARENT_SCOPE)
set(ZLIB_INCLUDE_DIRS ${zlib_SOURCE_DIR} ${zlib_BINARY_DIR} PARENT_SCOPE) set(ZLIB_INCLUDE_DIRS "${zlib_SOURCE_DIR}" "${zlib_BINARY_DIR}" PARENT_SCOPE)