Skip to content

Commit 033fe71

Browse files
committed
Remove CMake config special case for Nominatim integration
Not needed any more, because Nominatim now works with stock osm2pgsql.
1 parent be4f803 commit 033fe71

3 files changed

Lines changed: 11 additions & 23 deletions

File tree

.github/workflows/test-install.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ jobs:
7878
run: |
7979
test -d $PREFIX/bin
8080
test -e $PREFIX/bin/osm2pgsql
81+
test -e $PREFIX/bin/osm2pgsql-expire
8182
test -e $PREFIX/bin/osm2pgsql-replication
8283
test -d $PREFIX/share/man/man1
8384
test -f $PREFIX/share/man/man1/osm2pgsql.1

CMakeLists.txt

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,6 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
77

88
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
99

10-
# Do not create install targets when run as a subproject.
11-
# Currently used by Nominatim which cannot yet rely on installed versions
12-
# of osm2pgsql.
13-
if (${PROJECT_NAME} STREQUAL ${CMAKE_PROJECT_NAME})
14-
set(ENABLE_INSTALL ON)
15-
else()
16-
set(ENABLE_INSTALL OFF)
17-
endif()
18-
1910
if (NOT ${CMAKE_SIZEOF_VOID_P} EQUAL 8)
2011
message(FATAL_ERROR "osm2pgsql needs a 64 bit architecture")
2112
endif()
@@ -328,12 +319,10 @@ add_subdirectory(man)
328319
329320
include(GNUInstallDirs)
330321
331-
if (ENABLE_INSTALL)
332-
install(TARGETS osm2pgsql DESTINATION bin)
333-
install(TARGETS osm2pgsql-expire DESTINATION bin)
334-
install(FILES default.style empty.style DESTINATION share/osm2pgsql)
335-
install(PROGRAMS scripts/osm2pgsql-replication DESTINATION bin)
336-
if (BUILD_GEN)
337-
install(TARGETS osm2pgsql-gen DESTINATION bin)
338-
endif()
322+
install(TARGETS osm2pgsql DESTINATION bin)
323+
install(TARGETS osm2pgsql-expire DESTINATION bin)
324+
install(FILES default.style empty.style DESTINATION share/osm2pgsql)
325+
install(PROGRAMS scripts/osm2pgsql-replication DESTINATION bin)
326+
if (BUILD_GEN)
327+
install(TARGETS osm2pgsql-gen DESTINATION bin)
339328
endif()

man/CMakeLists.txt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,8 @@ if(MANPAGE_TARGETS)
6969
add_custom_target(man DEPENDS ${MANPAGE_TARGETS} VERBATIM)
7070
endif()
7171

72-
if(ENABLE_INSTALL)
73-
install(FILES osm2pgsql.1 DESTINATION share/man/man1)
74-
install(FILES osm2pgsql-replication.1 DESTINATION share/man/man1)
75-
if (BUILD_GEN)
76-
install(FILES osm2pgsql-gen.1 DESTINATION share/man/man1)
77-
endif()
72+
install(FILES osm2pgsql.1 DESTINATION share/man/man1)
73+
install(FILES osm2pgsql-replication.1 DESTINATION share/man/man1)
74+
if (BUILD_GEN)
75+
install(FILES osm2pgsql-gen.1 DESTINATION share/man/man1)
7876
endif()

0 commit comments

Comments
 (0)