Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CMake
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jaak Ristioja
CMake
Commits
3b8fa496
Commit
3b8fa496
authored
5 years ago
by
Brad King
Browse files
Options
Downloads
Plain Diff
Merge branch 'FindBoost-1.71' into release-3.15
Merge-request: !3763
parents
1ae24ee1
78285770
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Modules/FindBoost.cmake
+31
-18
31 additions, 18 deletions
Modules/FindBoost.cmake
Tests/RunCMake/FindBoost/CMakePackage_New/BoostConfig.cmake
+5
-0
5 additions, 0 deletions
Tests/RunCMake/FindBoost/CMakePackage_New/BoostConfig.cmake
with
36 additions
and
18 deletions
Modules/FindBoost.cmake
+
31
−
18
View file @
3b8fa496
...
...
@@ -266,6 +266,21 @@ function(_boost_get_existing_target component target_var)
foreach
(
prefix Boost boost
)
foreach
(
name IN LISTS names
)
if
(
TARGET
"
${
prefix
}
::
${
name
}
"
)
# The target may be an INTERFACE library that wraps around a single other
# target for compatibility. Unwrap this layer so we can extract real info.
if
(
"
${
name
}
"
MATCHES
"^(python|numpy|mpi_python)([1-9])([0-9])$"
)
set
(
name_nv
"
${
CMAKE_MATCH_1
}
"
)
if
(
TARGET
"
${
prefix
}
::
${
name_nv
}
"
)
get_property
(
type TARGET
"
${
prefix
}
::
${
name
}
"
PROPERTY TYPE
)
if
(
type STREQUAL
"INTERFACE_LIBRARY"
)
get_property
(
lib TARGET
"
${
prefix
}
::
${
name
}
"
PROPERTY INTERFACE_LINK_LIBRARIES
)
if
(
"
${
lib
}
"
STREQUAL
"
${
prefix
}
::
${
name_nv
}
"
)
set
(
${
target_var
}
"
${
prefix
}
::
${
name_nv
}
"
PARENT_SCOPE
)
return
()
endif
()
endif
()
endif
()
endif
()
set
(
${
target_var
}
"
${
prefix
}
::
${
name
}
"
PARENT_SCOPE
)
return
()
endif
()
...
...
@@ -1105,23 +1120,21 @@ function(_Boost_COMPONENT_DEPENDENCIES component _ret)
set
(
_Boost_TIMER_DEPENDENCIES chrono system
)
set
(
_Boost_WAVE_DEPENDENCIES filesystem serialization thread chrono date_time atomic
)
set
(
_Boost_WSERIALIZATION_DEPENDENCIES serialization
)
else
()
if
(
NOT Boost_VERSION_STRING VERSION_LESS 1.70.0
)
set
(
_Boost_CONTRACT_DEPENDENCIES thread chrono date_time
)
set
(
_Boost_COROUTINE_DEPENDENCIES context
)
set
(
_Boost_FIBER_DEPENDENCIES context
)
set
(
_Boost_IOSTREAMS_DEPENDENCIES regex
)
set
(
_Boost_LOG_DEPENDENCIES date_time log_setup filesystem thread regex chrono atomic
)
set
(
_Boost_MATH_DEPENDENCIES math_c99 math_c99f math_c99l math_tr1 math_tr1f math_tr1l atomic
)
set
(
_Boost_MPI_DEPENDENCIES serialization
)
set
(
_Boost_MPI_PYTHON_DEPENDENCIES python
${
component_python_version
}
mpi serialization
)
set
(
_Boost_NUMPY_DEPENDENCIES python
${
component_python_version
}
)
set
(
_Boost_THREAD_DEPENDENCIES chrono date_time atomic
)
set
(
_Boost_TIMER_DEPENDENCIES chrono system
)
set
(
_Boost_WAVE_DEPENDENCIES filesystem serialization thread chrono date_time atomic
)
set
(
_Boost_WSERIALIZATION_DEPENDENCIES serialization
)
endif
()
if
(
NOT Boost_VERSION_STRING VERSION_LESS 1.71.0
)
elseif
(
NOT Boost_VERSION_STRING VERSION_LESS 1.70.0
)
set
(
_Boost_CONTRACT_DEPENDENCIES thread chrono date_time
)
set
(
_Boost_COROUTINE_DEPENDENCIES context
)
set
(
_Boost_FIBER_DEPENDENCIES context
)
set
(
_Boost_IOSTREAMS_DEPENDENCIES regex
)
set
(
_Boost_LOG_DEPENDENCIES date_time log_setup filesystem thread regex chrono atomic
)
set
(
_Boost_MATH_DEPENDENCIES math_c99 math_c99f math_c99l math_tr1 math_tr1f math_tr1l atomic
)
set
(
_Boost_MPI_DEPENDENCIES serialization
)
set
(
_Boost_MPI_PYTHON_DEPENDENCIES python
${
component_python_version
}
mpi serialization
)
set
(
_Boost_NUMPY_DEPENDENCIES python
${
component_python_version
}
)
set
(
_Boost_THREAD_DEPENDENCIES chrono date_time atomic
)
set
(
_Boost_TIMER_DEPENDENCIES chrono
)
set
(
_Boost_WAVE_DEPENDENCIES filesystem serialization thread chrono date_time atomic
)
set
(
_Boost_WSERIALIZATION_DEPENDENCIES serialization
)
if
(
NOT Boost_VERSION_STRING VERSION_LESS 1.72.0
)
message
(
WARNING
"New Boost version may have incorrect or missing dependencies and imported targets"
)
endif
()
endif
()
...
...
@@ -1393,7 +1406,7 @@ else()
# _Boost_COMPONENT_HEADERS. See the instructions at the top of
# _Boost_COMPONENT_DEPENDENCIES.
set
(
_Boost_KNOWN_VERSIONS
${
Boost_ADDITIONAL_VERSIONS
}
"1.70.0"
"1.70"
"1.69.0"
"1.69"
"1.71.0"
"1.71"
"1.70.0"
"1.70"
"1.69.0"
"1.69"
"1.68.0"
"1.68"
"1.67.0"
"1.67"
"1.66.0"
"1.66"
"1.65.1"
"1.65.0"
"1.65"
"1.64.0"
"1.64"
"1.63.0"
"1.63"
"1.62.0"
"1.62"
"1.61.0"
"1.61"
"1.60.0"
"1.60"
"1.59.0"
"1.59"
"1.58.0"
"1.58"
"1.57.0"
"1.57"
"1.56.0"
"1.56"
"1.55.0"
"1.55"
...
...
This diff is collapsed.
Click to expand it.
Tests/RunCMake/FindBoost/CMakePackage_New/BoostConfig.cmake
+
5
−
0
View file @
3b8fa496
...
...
@@ -8,6 +8,7 @@ set_target_properties(Boost::date_time PROPERTIES
IMPORTED_CONFIGURATIONS RELEASE
IMPORTED_LOCATION_RELEASE
"
${
CMAKE_CURRENT_LIST_DIR
}
/lib/libboost_date_time.a"
)
set
(
Boost_python37_FOUND 1
)
add_library
(
Boost::python UNKNOWN IMPORTED
)
set_target_properties
(
Boost::python PROPERTIES
...
...
@@ -15,6 +16,10 @@ set_target_properties(Boost::python PROPERTIES
IMPORTED_LOCATION_RELEASE
"
${
CMAKE_CURRENT_LIST_DIR
}
/lib/libboost_python_release.a"
IMPORTED_LOCATION_DEBUG
"
${
CMAKE_CURRENT_LIST_DIR
}
/lib/libboost_python.a"
)
# Versioned target alias for compatibility (added by upstream BoostConfig).
add_library
(
Boost::python37 INTERFACE IMPORTED
)
set_property
(
TARGET Boost::python37 APPEND PROPERTY INTERFACE_LINK_LIBRARIES Boost::python
)
set
(
Boost_mpi_python2_FOUND 1
)
add_library
(
Boost::mpi_python UNKNOWN IMPORTED
)
set_target_properties
(
Boost::mpi_python PROPERTIES
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment