Add BOOST_SPIRIT_THREADSAFE flag
authoruser <balthazar@yandex.ru>
Sun, 26 Dec 2021 09:28:22 +0000 (12:28 +0300)
committeruser <balthazar@yandex.ru>
Sun, 26 Dec 2021 09:28:22 +0000 (12:28 +0300)
CMakeLists.txt
src/CMakeLists.txt

index 09aa47c..5a45b97 100644 (file)
@@ -231,7 +231,7 @@ if (NOT BDB_FOUND)
     message(FATAL_ERROR "Unable to find ${BerkeleyDB_LIB_name} library in ${BerkeleyDB_LIBS} directory. Try to specify either library path via BerkeleyDB_LIBS or berkeley db root path via BerkeleyDB_ROOT variable. You can also use BerkeleyDB_LIB_name variable to provide alternative file name search for.")
 endif()
 
-list(APPEND ALL_DEFINITIONS QT_GUI USE_QRCODE USE_IPV6)
+list(APPEND ALL_DEFINITIONS QT_GUI USE_QRCODE USE_IPV6 BOOST_SPIRIT_THREADSAFE)
 
 if(USE_LEVELDB)
     # Disable useless targets
index 7c0ea67..b16cff4 100644 (file)
@@ -170,7 +170,7 @@ execute_process (
     COMMAND sh -c "${CMAKE_CURRENT_SOURCE_DIR}/../share/genbuild.sh ${CMAKE_CURRENT_SOURCE_DIR}/build.h"
     OUTPUT_VARIABLE outVar
 )
-list(APPEND ALL_DEFINITIONS HAVE_BUILD_INFO USE_IPV6)
+list(APPEND ALL_DEFINITIONS HAVE_BUILD_INFO USE_IPV6 BOOST_SPIRIT_THREADSAFE)
 
 add_executable(novacoind ${ALL_SOURCES})