third-party: Windows fix for luv build recipe

The argument quotes in the luv build recipe did not work
in Windows.
This commit is contained in:
Rui Abreu Ferreira
2016-08-16 14:28:15 +01:00
committed by Rui Abreu Ferreira
parent bed61041a0
commit 703cf3197f

View File

@@ -153,9 +153,9 @@ if(USE_BUNDLED_BUSTED)
if(MINGW AND CMAKE_CROSSCOMPILING)
set(LUV_DEPS ${LUV_DEPS} libuv_host)
endif()
set(LUV_ARGS CFLAGS='-O0 -g3 -fPIC')
set(LUV_ARGS "CFLAGS=-O0 -g3 -fPIC")
if(USE_BUNDLED_LIBUV)
set(LUV_ARGS LIBUV_DIR=${HOSTDEPS_INSTALL_DIR} CFLAGS='-O0 -g3 -fPIC')
list(APPEND LUV_ARGS LIBUV_DIR=${HOSTDEPS_INSTALL_DIR})
endif()
add_custom_command(OUTPUT ${HOSTDEPS_LIB_DIR}/luarocks/rocks/luv
COMMAND ${LUAROCKS_BINARY}