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)