Skip to content

(maint) Fix linking errors on AIX, Solaris, Cisco, and Windows #79

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 23, 2016

Conversation

Magisus
Copy link
Contributor

@Magisus Magisus commented Sep 22, 2016

This has been run against a full platform set, with successful builds on all of them. Before this can be included in puppet-agent, Facter will need to be updated with similar conditionals around boost::locale.

@puppetcla
Copy link

CLA signed by all contributors.

SET(BOOST_COMPONENTS thread date_time chrono system program_options)

if(LEATHERMAN_USE_LOCALES)
list(APPEND BOOST_COMPONENTS locale)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

locale depends on system, I'd suggest prepending this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@@ -80,7 +80,6 @@ add_library(lib${PROJECT_NAME} $<TARGET_OBJECTS:libprojectsrc>)
set_target_properties(lib${PROJECT_NAME} PROPERTIES VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")
target_link_libraries(lib${PROJECT_NAME}
${LEATHERMAN_LIBRARIES}
${Boost_LIBRARIES}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This surprises me. I suppose we might only be using things that are header-only (or get everything we need from Leatherman).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It surprised me too. This one fixed one of the multiple definitions errors on Windows when linking Facter against cpp-hocon...

@Magisus Magisus force-pushed the more-boost branch 2 times, most recently from 8ab2b95 to 6d0affb Compare September 23, 2016 17:30
@MikaelSmith MikaelSmith merged commit 89d0e69 into puppetlabs:master Sep 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants