FC Updates from BitShares and myself #21

Closed
nathanielhourt wants to merge 687 commits from dapp-support into latest-fc
4 changed files with 1 additions and 1228 deletions
Showing only changes of commit 3f1096d23e - Show all commits

View file

@ -26,8 +26,6 @@ INCLUDE( SetupTargetMacros )
INCLUDE(GetGitRevisionDescription)
INCLUDE(CheckLibraryExists)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules/Legacy)
get_git_head_revision(GIT_REFSPEC FC_GIT_REVISION_SHA)
get_git_unix_timestamp(FC_GIT_REVISION_UNIX_TIMESTAMP)
@ -138,7 +136,7 @@ IF( WIN32 )
# iphlpapi.lib
ENDIF(WIN32)
FIND_PACKAGE(Boost CONFIG COMPONENTS ${BOOST_COMPONENTS})
FIND_PACKAGE(Boost COMPONENTS ${BOOST_COMPONENTS} REQUIRED)
IF(NOT WIN32)
MESSAGE(STATUS "Configuring fc to build on Unix/Apple")

View file

@ -1,18 +0,0 @@
# This overrides `find_package(Boost ... CONFIG ... )` calls
# - calls the CMake's built-in `FindBoost.cmake` and adds `pthread` library dependency
MESSAGE(STATUS "Using custom FindBoost config")
find_package(Boost 1.58 REQUIRED COMPONENTS ${Boost_FIND_COMPONENTS})
# Inject `pthread` dependency to Boost if needed
if (UNIX AND NOT CYGWIN)
list(FIND Boost_FIND_COMPONENTS thread _using_boost_thread)
if (_using_boost_thread GREATER -1)
find_library(BOOST_THREAD_LIBRARY NAMES pthread DOC "The threading library used by boost-thread")
if (BOOST_THREAD_LIBRARY)
MESSAGE(STATUS "Adding Boost thread lib dependency: ${BOOST_THREAD_LIBRARY}")
list(APPEND Boost_LIBRARIES ${BOOST_THREAD_LIBRARY})
endif ()
endif ()
endif ()

File diff suppressed because it is too large Load diff

View file

@ -1,27 +0,0 @@
# If you are running recent enough version of CMake you shall consider updating/removing these lines ...
MESSAGE(STATUS "Configuring build scripts for older CMake versions")
# This patches your current boost searching routine so that `pthread` library is included if needed
# - this is here to fix some older CMake + Boost configurations
set(Boost_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../Boost" PARENT_SCOPE)
if (APPLE OR USE_LEGACY_FIND_BOOST)
MESSAGE(STATUS "Configuring for custom FindBoost.cmake")
# Custom FindBoost.cmake
# - overrides `find_package( Boost )` functionality
# - it's a modified https://github.com/Kitware/CMake/blob/363825cd55595b7de62fcf610836f6156a9f1a31/Modules/FindBoost.cmake
# - adds additional Boost search path
# - adds pthread as an dependency if needed
######
# This is using an old version of FindBoost.cmake irregardless of your CMake version
# - this will be removed in future release
# - improves Boost library search in some Apple OS configrations
# - this can be fixed with properly setting BOOST_LIBRARYDIR
#####
MESSAGE(DEPRECATION "Custom FindBoost.cmake will be deprecated in some future release. If you are using some of the affected configurations try setting the BOOST_LIBRARYDIR variable.")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/Boost")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} PARENT_SCOPE)
endif ()