Skip to content

Commit b9b1638

Browse files
authored
Merge pull request #2066 from joto/check-64
Check in CMake config that we are building for 64bit architecture
2 parents 415de9a + 3899042 commit b9b1638

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)