Skip to content

Commit

Permalink
Working around imported target limitation
Browse files Browse the repository at this point in the history
  • Loading branch information
Austin McCartney authored and Austin McCartney committed Aug 12, 2018
1 parent 32b5037 commit ee25896
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Expand Up @@ -99,8 +99,10 @@ if ( stlab.testing OR stlab.boost_variant OR stlab.boost_optional )
# We provide aliases to the conan target to mimic the native findBoost
# functionality
#
add_library( Boost::boost ALIAS CONAN_PKG::boost )
add_library( Boost::unit_test_framework ALIAS CONAN_PKG::boost )
add_library( Boost::boost INTERFACE IMPORTED )
add_library( Boost::unit_test_framework INTERFACE IMPORTED )
set_property( TARGET Boost::boost Boost::unit_test_framework
APPEND PROPERTY INTERFACE_LINK_LIBRARIES CONAN_PKG::boost )
else()

#
Expand Down

0 comments on commit ee25896

Please sign in to comment.