diff options
author | Roger Leigh <r.leigh@dundee.ac.uk> | 2016-04-17 15:24:51 (GMT) |
---|---|---|
committer | Roger Leigh <r.leigh@dundee.ac.uk> | 2016-04-19 21:07:45 (GMT) |
commit | 2c1b720e643aafd725a8c0be11913834704d7269 (patch) | |
tree | 99f5db85aeb07ccab6b934aa54e56a2d224e11f0 /Modules/FindBoost.cmake | |
parent | 7d4c99a957b37e6905af3fe6ea96b7fdf2b8359c (diff) | |
download | CMake-2c1b720e643aafd725a8c0be11913834704d7269.zip CMake-2c1b720e643aafd725a8c0be11913834704d7269.tar.gz CMake-2c1b720e643aafd725a8c0be11913834704d7269.tar.bz2 |
FindBoost: Define Boost::boost for all boost versions
Diffstat (limited to 'Modules/FindBoost.cmake')
-rw-r--r-- | Modules/FindBoost.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/FindBoost.cmake b/Modules/FindBoost.cmake index 9e6083db..38ccf78 100644 --- a/Modules/FindBoost.cmake +++ b/Modules/FindBoost.cmake @@ -1573,7 +1573,7 @@ endif() # Add imported targets # ------------------------------------------------------------------------ -if(Boost_FOUND AND _Boost_IMPORTED_TARGETS) +if(Boost_FOUND) # For header-only libraries if(NOT TARGET Boost::boost) add_library(Boost::boost INTERFACE IMPORTED) @@ -1584,7 +1584,7 @@ if(Boost_FOUND AND _Boost_IMPORTED_TARGETS) endif() foreach(COMPONENT ${Boost_FIND_COMPONENTS}) - if(NOT TARGET Boost::${COMPONENT}) + if(_Boost_IMPORTED_TARGETS AND NOT TARGET Boost::${COMPONENT}) string(TOUPPER ${COMPONENT} UPPERCOMPONENT) if(Boost_${UPPERCOMPONENT}_FOUND) if(Boost_USE_STATIC_LIBS) |