Open Zacrain opened 3 months ago
After upgrading CMake from 3.16.3
to 3.30.02
I now encounter the same issue on both machines. Both have newer CMake versions now. Therefore I wonder whether this issue is related to that.
I'm having the same issue while trying to add Matplot++
using CMake's FetchContent
FetchContent_Declare(
matplotplusplus
GIT_REPOSITORY https://github.com/alandefreitas/matplotplusplus.git
GIT_TAG v1.2.0
)
FetchContent_MakeAvailable(matplotplusplus)
target_link_libraries(tests PRIVATE matplot)
I'm using CMake 3.30.3
Bug category
Matplot++ Version 1.2.0
Describe the bug I've added Matplot++ via CPM on two Ubuntu machines. I have no issues on one of them. The other, however, can not compile due to
cv.h
not being found which is required by the 3rd party libraryCImg
.In
CImg.h
I've tried changing the included headers toopencv2/opencv.hpp
andopencv2/highgui.hpp
as OpenCV 4.8.1 is installed. This, understandably, led to a bunch of errors. And removing the CImg library seems not to be a solution either as Matplot++ obviously relies on it in several ways.Steps to Reproduce
(
ENABLE_MATPLOT
is an option I set in my project's CMake configuration to enable/disable some components which rely on Matplot. I can build my project without Matplot++ features if I want to, so you don't need to worry about that option.)Output
Platform
Environment Details:
Additional context CPM command used to add Matplot++ and the corresponding section in the specific CMake file: