diff options
author | Riccardo Spagni <ric@spagni.net> | 2014-10-06 19:40:53 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2014-10-06 19:40:53 +0200 |
commit | e55982a892563be91e9d6f14d3dfe95d952ff2e5 (patch) | |
tree | ddb1acc36eb2c105f685b3b645a988f51a622e79 | |
parent | fixed configure_command for libunbound under mingw (diff) | |
download | monero-e55982a892563be91e9d6f14d3dfe95d952ff2e5.tar.xz |
set the winsock variable differently on Windows
-rwxr-xr-x | external/CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt index bab2ac450..2b10442a4 100755 --- a/external/CMakeLists.txt +++ b/external/CMakeLists.txt @@ -100,11 +100,12 @@ IF(!UNBOUND_INCLUDE_DIR OR STATIC) ENDIF() IF(MINGW) + set(ENV{USE_WINSOCK} 1) EXTERNALPROJECT_ADD( libunbound PREFIX ${CMAKE_CURRENT_BINARY_DIR}/unbound URL ${CMAKE_CURRENT_SOURCE_DIR}/unbound/ - CONFIGURE_COMMAND COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/unbound/configure USE_WINSOCK=1 --prefix=${CMAKE_FIND_ROOT_PATH} --build=${GCC_PREFIX} --host=${GCC_PREFIX} --disable-shared --enable-static --sysconfdir=${CMAKE_FIND_ROOT_PATH}/etc --localstatedir=${CMAKE_FIND_ROOT_PATH}/var --sbindir=${CMAKE_FIND_ROOT_PATH}/bin --disable-gost --disable-rpath --with-libevent=no --with-libexpat=${CMAKE_FIND_ROOT_PATH} --without-pyunbound --without-pythonmodule --with-ssl=${CMAKE_FIND_ROOT_PATH} --without-pthreads --with-libunbound-only + CONFIGURE_COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/unbound/configure --prefix=${CMAKE_FIND_ROOT_PATH} --build=${GCC_PREFIX} --host=${GCC_PREFIX} --disable-shared --enable-static --sysconfdir=${CMAKE_FIND_ROOT_PATH}/etc --localstatedir=${CMAKE_FIND_ROOT_PATH}/var --sbindir=${CMAKE_FIND_ROOT_PATH}/bin --disable-gost --disable-rpath --with-libevent=no --with-libexpat=${CMAKE_FIND_ROOT_PATH} --without-pyunbound --without-pythonmodule --with-ssl=${CMAKE_FIND_ROOT_PATH} --without-pthreads --with-libunbound-only BUILD_COMMAND $(MAKE) UPDATE_COMMAND "" PATCH_COMMAND "" |