Skip to content

Commit 4fed109

Browse files
authored
Merge pull request #2452 from joto/cmake-updates
Various Cmake updates
2 parents 8c1623c + e859679 commit 4fed109

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ jobs:
165165
env:
166166
CC: gcc-12
167167
CXX: g++-12
168-
EXTRA_FLAGS: -Wno-stringop-overread
169168
LUA_VERSION: 5.3
170169
LUAJIT_OPTION: ON
171170
POSTGRESQL_VERSION: 13
@@ -262,7 +261,6 @@ jobs:
262261
env:
263262
CC: gcc-12
264263
CXX: g++-12
265-
EXTRA_FLAGS: -Wno-stringop-overread
266264
LUA_VERSION: 5.4
267265
LUAJIT_OPTION: ON
268266
POSTGRESQL_VERSION: 16

.github/workflows/test-install.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
POSTGRESQL_VERSION: 16
2323
POSTGIS_VERSION: 3
2424
BUILD_TYPE: Release
25-
CXXFLAGS: -pedantic -Wextra -Wno-stringop-overread -Werror
25+
CXXFLAGS: -pedantic -Wextra -Werror
2626
PREFIX: /usr/local
2727
OSMURL: https://download.geofabrik.de/europe/monaco-latest.osm.pbf
2828
OSMFILE: monaco-latest.osm.pbf

CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ else()
5252
add_compile_options(-Wall)
5353
endif()
5454

55+
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
56+
add_definitions(-Wno-stringop-overread -Wno-maybe-uninitialized)
57+
endif()
58+
5559
option(EXTERNAL_LIBOSMIUM "Do not use the bundled libosmium" OFF)
5660
option(EXTERNAL_PROTOZERO "Do not use the bundled protozero" OFF)
5761
option(EXTERNAL_FMT "Do not use the bundled fmt" OFF)
@@ -67,7 +71,7 @@ endif()
6771
set(MINIMUM_POSTGRESQL_SERVER_VERSION "11")
6872
set(MINIMUM_POSTGRESQL_SERVER_VERSION_NUM "110000")
6973

70-
set(PostgreSQL_ADDITIONAL_VERSIONS "17" "16" "15" "14" "13" "12" "11")
74+
set(PostgreSQL_ADDITIONAL_VERSIONS "19" "18" "17" "16" "15" "14" "13" "12" "11")
7175

7276
#############################################################
7377
# Version
@@ -196,7 +200,7 @@ endif()
196200

197201
find_program(LUA_EXE NAMES lua lua5.4 lua5.3 lua5.2 lua5.1)
198202

199-
find_package(Boost 1.50 REQUIRED)
203+
find_package(Boost CONFIG 1.50 REQUIRED)
200204
include_directories(SYSTEM ${Boost_INCLUDE_DIR})
201205

202206
find_package(PostgreSQL REQUIRED)

0 commit comments

Comments
 (0)