Skip to content
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

Update how boost is used for c++98 #125

Merged
merged 2 commits into from
Apr 6, 2023
Merged

Update how boost is used for c++98 #125

merged 2 commits into from
Apr 6, 2023

Conversation

artem-ogre
Copy link
Owner

Update readme and cmake to better reflect how boost is used in CDT (only when compiling with C++98)

@artem-ogre artem-ogre merged commit f16456a into master Apr 6, 2023
@artem-ogre artem-ogre deleted the cmake-improvements branch April 6, 2023 07:58
Comment on lines +151 to +155
if(CDT_USE_AS_COMPILED_LIBRARY)
target_link_libraries(${PROJECT_NAME} PUBLIC Boost::boost)
else ()
target_link_libraries(${PROJECT_NAME} INTERFACE Boost::boost)
endif ()

Choose a reason for hiding this comment

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

Suggested change
if(CDT_USE_AS_COMPILED_LIBRARY)
target_link_libraries(${PROJECT_NAME} PUBLIC Boost::boost)
else ()
target_link_libraries(${PROJECT_NAME} INTERFACE Boost::boost)
endif ()
target_link_libraries(${PROJECT_NAME} ${cdt_scope} Boost::boost)

Like everywhere else

Copy link
Owner Author

Choose a reason for hiding this comment

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

Thanks @autoantwort
Fixed in 7e2432f

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.

2 participants