|
|
|
@ -127,8 +127,7 @@ if(STATIC)
|
|
|
|
|
# manually set the unbound submodule the right commit that has the fix.
|
|
|
|
|
# This only works with -DMANUAL_SUBMODULES=1
|
|
|
|
|
message("\n${BoldYellow}applying unbound static build fix contrib/unbound_static.patch\n${ResetColor}")
|
|
|
|
|
execute_process(COMMAND bash -c "git -C ${CMAKE_SOURCE_DIR}/external/wownero/external/unbound apply ${CMAKE_SOURCE_DIR}/contrib/unbound_static.patch")
|
|
|
|
|
|
|
|
|
|
execute_process(COMMAND bash -c "patch -p1 ${CMAKE_SOURCE_DIR}/external/wownero/external/unbound/configure_checks.cmake < ${CMAKE_SOURCE_DIR}/contrib/unbound_static.patch")
|
|
|
|
|
set(Boost_USE_STATIC_LIBS ON)
|
|
|
|
|
set(Boost_USE_STATIC_RUNTIME ON)
|
|
|
|
|
add_definitions(-DMONERO_GUI_STATIC)
|
|
|
|
|