diff --git a/CMakeLists.txt b/CMakeLists.txt index b4bab0f17..bb2facf69 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -220,11 +220,13 @@ if(NOT AUTOWIRING_IS_EMBEDDED) ) # Install autoboost headers - install( - DIRECTORY ${PROJECT_SOURCE_DIR}/contrib/autoboost/autoboost - DESTINATION include - COMPONENT autowiring - ) + if(NOT autowiring_USE_LIBCXX) + install( + DIRECTORY ${PROJECT_SOURCE_DIR}/contrib/autoboost/autoboost + DESTINATION include + COMPONENT autowiring + ) + endif() # Targets file is needed in order to describe how to link Autowiring to the rest of the system install(EXPORT AutowiringTargets FILE AutowiringTargets.cmake COMPONENT autowiring NAMESPACE Autowiring:: DESTINATION cmake CONFIGURATIONS ${CMAKE_CONFIGURATION_TYPES})