Skip to content

cmake: GCC 8 Compatibility#3864

Merged
hobu merged 1 commit intoPDAL:masterfrom
koordinates:gcc8-compat
Sep 18, 2022
Merged

cmake: GCC 8 Compatibility#3864
hobu merged 1 commit intoPDAL:masterfrom
koordinates:gcc8-compat

Conversation

@rcoup
Copy link
Contributor

@rcoup rcoup commented Sep 17, 2022

GCC 8 requires linking with libstdc++fs for access to std::filesystem under C++17. Doing this via CMAKE_*_LINKER_FLAGS, LDFLAGS, etc ends up with the library too early on the link line, so it's not solvable without altering the CMake code.

Add libstdc++fs as a link library for libpdal_util when compiling with GCC 8

Fixes #3826

gcc8 requires linking with libstdc++fs for access to std::filesystem
under C++17.
@hobu hobu added this to the 2.5.0 milestone Sep 18, 2022
@hobu hobu merged commit a12c31e into PDAL:master Sep 18, 2022
@rcoup rcoup deleted the gcc8-compat branch January 14, 2023 20:17
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.

Unable to build PDAL from source, Linking CXX executable bin/lasdump

2 participants