Target std::filesystem was not found (g++11) #334
Labels
bug - compilation error
Something isn't working
cross-platform issue - linux
Help wanted - Good for contributing if you are on linux
Hi there, first of all, thanks so much for this awesome repo.
Bug category
Describe the bug
Does not compile when linking against Matplot++:
Steps to Reproduce
Built with the latest release with the following commands:
cmake -B build/local \ -DMATPLOTPP_BUILD_EXAMPLES=OFF \ -DMATPLOTPP_BUILD_SHARED_LIBS=ON \ -DMATPLOTPP_BUILD_TESTS=OFF \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX="$HOME/lib/Matplot++" \ -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON cmake --build build/local cmake --install build/local
Sample project (CMakeLists.txt) linking against Matplot++:
Output
Does not compile, no output.
Platform
Environment Details:
Additional context
g++11 does not require a manual link against the filesystem module (it is linked automatically).
E.g., the following code compiles and runs correctly on my side:
without the need for CMake commands in the link_libraries family.
The text was updated successfully, but these errors were encountered: