[Tile-serving] [openstreetmap/osm2pgsql] Declaring C++ version in CMake config (#1010)
Jochen Topf
notifications at github.com
Tue Jul 26 07:16:35 UTC 2022
I have experimented with that and it seems setting
```
# We don't want to use special compiler extensions because we want portability
set(CMAKE_CXX_EXTENSIONS OFF)
target_compile_features(osm2pgsql_lib PUBLIC cxx_std_17)
```
should work, because it has (mostly) the desired behaviour of setting `--std=c++17` if needed and nothing otherwise. It doesn't work for some reason on macOS though, I suspect that clang on macOS defaults to C++98 and CMake on macOS doesn't know this, so it doesn't set anything. Bummer.
There is also the problem of the fmt lib, see #1704 .
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/1010#issuecomment-1195099728
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/osm2pgsql/issues/1010/1195099728 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20220726/211e2295/attachment.htm>
More information about the Tile-serving
mailing list