mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 11:15:14 -07:00
3ddd99ec64
Problem: Build type is not set in BuildLibuv.cmake, so libuv is always built for Debug type. Solution: Add build type for libuv.
20 lines
532 B
CMake
20 lines
532 B
CMake
if(USE_EXISTING_SRC_DIR)
|
|
unset(LIBUV_URL)
|
|
endif()
|
|
ExternalProject_Add(libuv
|
|
URL ${LIBUV_URL}
|
|
URL_HASH SHA256=${LIBUV_SHA256}
|
|
DOWNLOAD_NO_PROGRESS TRUE
|
|
CMAKE_ARGS
|
|
-DCMAKE_INSTALL_PREFIX=${DEPS_INSTALL_DIR}
|
|
-DCMAKE_INSTALL_LIBDIR=lib
|
|
-DBUILD_TESTING=OFF
|
|
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
|
|
-DLIBUV_BUILD_SHARED=OFF
|
|
${BUILD_TYPE_STRING}
|
|
CMAKE_CACHE_ARGS
|
|
-DCMAKE_OSX_ARCHITECTURES:STRING=${CMAKE_OSX_ARCHITECTURES}
|
|
DOWNLOAD_DIR ${DEPS_DOWNLOAD_DIR}/libuv)
|
|
|
|
list(APPEND THIRD_PARTY_DEPS libuv)
|