Merge pull request #149 from bitshares/jmj_cmake
Remove custom FindBoost.cmake
This commit is contained in:
commit
1eebd3c692
3 changed files with 2 additions and 1210 deletions
|
|
@ -26,8 +26,6 @@ INCLUDE( SetupTargetMacros )
|
||||||
INCLUDE(GetGitRevisionDescription)
|
INCLUDE(GetGitRevisionDescription)
|
||||||
INCLUDE(CheckLibraryExists)
|
INCLUDE(CheckLibraryExists)
|
||||||
|
|
||||||
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules/Legacy)
|
|
||||||
|
|
||||||
get_git_head_revision(GIT_REFSPEC FC_GIT_REVISION_SHA)
|
get_git_head_revision(GIT_REFSPEC FC_GIT_REVISION_SHA)
|
||||||
get_git_unix_timestamp(FC_GIT_REVISION_UNIX_TIMESTAMP)
|
get_git_unix_timestamp(FC_GIT_REVISION_UNIX_TIMESTAMP)
|
||||||
|
|
||||||
|
|
@ -138,7 +136,8 @@ IF( WIN32 )
|
||||||
# iphlpapi.lib
|
# iphlpapi.lib
|
||||||
ENDIF(WIN32)
|
ENDIF(WIN32)
|
||||||
|
|
||||||
FIND_PACKAGE(Boost CONFIG COMPONENTS ${BOOST_COMPONENTS})
|
set(Boost_DIR "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules/Boost")
|
||||||
|
FIND_PACKAGE(Boost CONFIG COMPONENTS ${BOOST_COMPONENTS} )
|
||||||
|
|
||||||
IF(NOT WIN32)
|
IF(NOT WIN32)
|
||||||
MESSAGE(STATUS "Configuring fc to build on Unix/Apple")
|
MESSAGE(STATUS "Configuring fc to build on Unix/Apple")
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -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 ()
|
|
||||||
Loading…
Reference in a new issue