mirror of
https://github.com/boostorg/boost_install.git
synced 2026-01-19 04:02:13 +00:00
Merge branch 'patch-1' of https://github.com/traversaro/boost_install into feature/pr-52
This commit is contained in:
@@ -235,6 +235,10 @@ set(Boost_VERSION_MACRO ${Boost_VERSION_MAJOR}0${Boost_VERSION_MINOR}0${Boost_VE
|
||||
get_target_property(Boost_INCLUDE_DIRS Boost::headers INTERFACE_INCLUDE_DIRECTORIES)
|
||||
set(Boost_LIBRARIES "")
|
||||
|
||||
# Save project's policies
|
||||
cmake_policy(PUSH)
|
||||
cmake_policy(SET CMP0057 NEW) # if IN_LIST
|
||||
|
||||
# Find components
|
||||
|
||||
if("ALL" IN_LIST Boost_FIND_COMPONENTS)
|
||||
@@ -280,3 +284,6 @@ endif()
|
||||
if("ALL" IN_LIST Boost_FIND_COMPONENTS)
|
||||
set(Boost_ALL_FOUND ${boost_headers_FOUND})
|
||||
endif()
|
||||
|
||||
# Restore project's policies
|
||||
cmake_policy(POP)
|
||||
|
||||
Reference in New Issue
Block a user