Skip to content

Commit 25c8a5b

Browse files
committed
Disable deprecated-declarations warnings
Only for reprojection-generic-proj4.cpp which triggers the warning in the newest libosmium code.
1 parent 6fd4f46 commit 25c8a5b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ list(APPEND osm2pgsql_lib_SOURCES ${PROJECT_BINARY_DIR}/src/version.cpp)
8585

8686
if (HAVE_PROJ4)
8787
list(APPEND osm2pgsql_lib_SOURCES reprojection-generic-proj4.cpp)
88+
if (NOT MSVC)
89+
set_source_files_properties(reprojection-generic-proj4.cpp
90+
PROPERTIES COMPILE_FLAGS -Wno-deprecated-declarations)
91+
endif()
8892
else()
8993
list(APPEND osm2pgsql_lib_SOURCES reprojection-generic-none.cpp)
9094
endif()

0 commit comments

Comments
 (0)