update boost on linux
This commit is contained in:
@@ -0,0 +1,98 @@
|
||||
# Generated by Boost 1.70.0
|
||||
|
||||
if(TARGET Boost::iostreams)
|
||||
return()
|
||||
endif()
|
||||
|
||||
message(STATUS "Found boost_iostreams ${boost_iostreams_VERSION} at ${boost_iostreams_DIR}")
|
||||
|
||||
# Compute the include and library directories relative to this file.
|
||||
get_filename_component(_BOOST_CMAKEDIR "${CMAKE_CURRENT_LIST_DIR}/../" ABSOLUTE)
|
||||
get_filename_component(_BOOST_INCLUDEDIR "${_BOOST_CMAKEDIR}/../../include/boost-1_70/" ABSOLUTE)
|
||||
get_filename_component(_BOOST_LIBDIR "${_BOOST_CMAKEDIR}/../" ABSOLUTE)
|
||||
|
||||
# Create imported target Boost::iostreams
|
||||
add_library(Boost::iostreams UNKNOWN IMPORTED)
|
||||
|
||||
set_target_properties(Boost::iostreams PROPERTIES
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${_BOOST_INCLUDEDIR}"
|
||||
INTERFACE_COMPILE_DEFINITIONS "BOOST_ALL_NO_LIB"
|
||||
)
|
||||
|
||||
include(${CMAKE_CURRENT_LIST_DIR}/../BoostDetectToolset-1.70.0.cmake)
|
||||
|
||||
if(Boost_DEBUG)
|
||||
message(STATUS "Scanning ${CMAKE_CURRENT_LIST_DIR}/libboost_iostreams-variant*.cmake")
|
||||
endif()
|
||||
|
||||
file(GLOB __boost_variants "${CMAKE_CURRENT_LIST_DIR}/libboost_iostreams-variant*.cmake")
|
||||
|
||||
macro(_BOOST_SKIPPED fname reason)
|
||||
if(Boost_DEBUG)
|
||||
message(STATUS " ... skipped ${fname} (${reason})")
|
||||
endif()
|
||||
list(APPEND __boost_skipped "${fname} (${reason})")
|
||||
endmacro()
|
||||
|
||||
foreach(f IN LISTS __boost_variants)
|
||||
if(Boost_DEBUG)
|
||||
message(STATUS " Including ${f}")
|
||||
endif()
|
||||
include(${f})
|
||||
endforeach()
|
||||
|
||||
unset(_BOOST_LIBDIR)
|
||||
unset(_BOOST_INCLUDEDIR)
|
||||
unset(_BOOST_CMAKEDIR)
|
||||
|
||||
get_target_property(__boost_configs Boost::iostreams IMPORTED_CONFIGURATIONS)
|
||||
|
||||
if(__boost_variants AND NOT __boost_configs)
|
||||
message(STATUS "No suitable boost_iostreams variant has been identified!")
|
||||
if(NOT Boost_DEBUG)
|
||||
foreach(s IN LISTS __boost_skipped)
|
||||
message(STATUS " ${s}")
|
||||
endforeach()
|
||||
endif()
|
||||
set(boost_iostreams_FOUND 0)
|
||||
set(boost_iostreams_NOT_FOUND_MESSAGE "No suitable build variant has been found.")
|
||||
unset(__boost_skipped)
|
||||
unset(__boost_configs)
|
||||
unset(__boost_variants)
|
||||
unset(_BOOST_IOSTREAMS_DEPS)
|
||||
return()
|
||||
endif()
|
||||
|
||||
unset(__boost_skipped)
|
||||
unset(__boost_configs)
|
||||
unset(__boost_variants)
|
||||
|
||||
if(_BOOST_IOSTREAMS_DEPS)
|
||||
list(REMOVE_DUPLICATES _BOOST_IOSTREAMS_DEPS)
|
||||
message(STATUS "Adding boost_iostreams dependencies: ${_BOOST_IOSTREAMS_DEPS}")
|
||||
endif()
|
||||
|
||||
foreach(dep_boost_iostreams IN LISTS _BOOST_IOSTREAMS_DEPS)
|
||||
set(_BOOST_QUIET)
|
||||
if(boost_iostreams_FIND_QUIETLY)
|
||||
set(_BOOST_QUIET QUIET)
|
||||
endif()
|
||||
set(_BOOST_REQUIRED)
|
||||
if(boost_iostreams_FIND_REQUIRED)
|
||||
set(_BOOST_REQUIRED REQUIRED)
|
||||
endif()
|
||||
get_filename_component(_BOOST_CMAKEDIR "${CMAKE_CURRENT_LIST_DIR}/../" ABSOLUTE)
|
||||
find_package(boost_${dep_boost_iostreams} 1.70.0 EXACT CONFIG ${_BOOST_REQUIRED} ${_BOOST_QUIET} HINTS ${_BOOST_CMAKEDIR})
|
||||
set_property(TARGET Boost::iostreams APPEND PROPERTY INTERFACE_LINK_LIBRARIES Boost::${dep_boost_iostreams})
|
||||
unset(_BOOST_QUIET)
|
||||
unset(_BOOST_REQUIRED)
|
||||
unset(_BOOST_CMAKEDIR)
|
||||
if(NOT boost_${dep_boost_iostreams}_FOUND)
|
||||
set(boost_iostreams_FOUND 0)
|
||||
set(boost_iostreams_NOT_FOUND_MESSAGE "A required dependency, boost_${dep_boost_iostreams}, has not been found.")
|
||||
unset(_BOOST_IOSTREAMS_DEPS)
|
||||
return()
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
unset(_BOOST_IOSTREAMS_DEPS)
|
||||
Reference in New Issue
Block a user