Skip to content

Commit

Permalink
Merge pull request #316 from leapmotion/fix-autoboostinstall
Browse files Browse the repository at this point in the history
Only install autoboost headers on platforms that need it
  • Loading branch information
codemercenary committed Jan 6, 2015
2 parents d60711a + 2b9c60c commit fef8772
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit fef8772

Please sign in to comment.