Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix CMake library include_directories#335

Open
WildRackoon wants to merge 1 commit into
lava:master from
WildRackoon:fixcmakelibraryusage
Open

Fix CMake library include_directories #335
WildRackoon wants to merge 1 commit into
lava:master from
WildRackoon:fixcmakelibraryusage

Conversation

@WildRackoon

@WildRackoon WildRackoon commented Jan 16, 2023

Copy link
Copy Markdown

Fixes two things:

  • matplotib_cpp target requires $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}> to be used with add_subdirectory so that matplotlibcpp.h can be included seamlessly
  • There are no headers within the examples subdirectory, therefore the $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/examples> is useless

plusk01 and mark-burns-0 reacted with thumbs up emoji

plusk01 commented Jan 28, 2023
edited
Loading

Copy link
Copy Markdown

@lava can we get this one merged?

Adding $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}> also fixes the use case for including matplotlib-cpp in cmake with FetchContent:

include(FetchContent)
FetchContent_Declare(matplotlibcpp
 GIT_REPOSITORY https://github.com/lava/matplotlib-cpp.git
 GIT_TAG ef0383f1315d32e0156335e10b82e90b334f6d9f
)
FetchContent_MakeAvailable(matplotlibcpp)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /