Skip to content

Commit 3899042

Browse files
committed
Check in CMake config that we are building for 64bit architecture
For a long time we haven't officially supported 32bit architectures but not really disabled them. But this is giving us more problems lately and we can't test on 32 bit systems anyway, so this now gives us an up front check.
1 parent 415de9a commit 3899042

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ else()
1616
set(ENABLE_INSTALL OFF)
1717
endif()
1818

19+
if (NOT ${CMAKE_SIZEOF_VOID_P} EQUAL 8)
20+
message(FATAL_ERROR "osm2pgsql needs a 64 bit architecture")
21+
endif()
22+
1923
if (WIN32)
2024
set(DEFAULT_STYLE "default.style" CACHE STRING "Default style used unless one is given on the command line")
2125
else()

0 commit comments

Comments
 (0)