From 780abeed9e9412afb7ea00d58f9ceefea5e30050 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Mon, 6 Apr 2015 11:46:17 +0200 Subject: [PATCH] Build fix. --- CMakeLists.txt | 1 + cmake/EthDependencies.cmake | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8937c29d0..56ef68e32 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -196,6 +196,7 @@ else () endif() if (GUI) set(GUI ON) + set(JSONRPC ON) else () set(GUI OFF) endif () diff --git a/cmake/EthDependencies.cmake b/cmake/EthDependencies.cmake index 5c0eaa65b..61c87efd2 100644 --- a/cmake/EthDependencies.cmake +++ b/cmake/EthDependencies.cmake @@ -101,7 +101,7 @@ find_program(ETH_JSON_RPC_STUB jsonrpcstub) message(" - jsonrpcstub location : ${ETH_JSON_RPC_STUB}") # do not compile GUI -if (NOT HEADLESS) +if (GUI) # we need json rpc to build alethzero if (NOT JSON_RPC_CPP_FOUND) @@ -153,7 +153,7 @@ if (NOT HEADLESS) endif() endif() -endif() #HEADLESS +endif() #GUI # use multithreaded boost libraries, with -mt suffix set(Boost_USE_MULTITHREADED ON)