Skip to content

Commit

Permalink
fix(cmake): increase minimum version to 3.15, fix Data::PostgreSQL in…
Browse files Browse the repository at this point in the history
…clude target, remove unnecessary cmake modules that are provided with CMake itself (#4540)
  • Loading branch information
matejk committed Oct 15, 2024
1 parent 71a085c commit 3dd5287
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 981 deletions.
13 changes: 1 addition & 12 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
cmake_minimum_required(VERSION 3.5.0)
cmake_policy(VERSION 3.15.0)
cmake_minimum_required(VERSION 3.15.0)

project(Poco)

Expand Down Expand Up @@ -33,12 +32,6 @@ endforeach(OUTPUTCONFIG)
# Append our module directory to CMake
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)

if(CMAKE_VERSION VERSION_LESS "3.10")
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/V39)
endif()
if(CMAKE_VERSION VERSION_LESS "3.14")
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/V313)
endif()
#################################################################################
# Setup C/C++ compiler options
#################################################################################
Expand Down Expand Up @@ -562,10 +555,6 @@ install(
if(POCO_UNBUNDLED)
install(FILES cmake/FindPCRE2.cmake
DESTINATION "${PocoConfigPackageLocation}")
install(FILES cmake/V39/FindEXPAT.cmake
DESTINATION "${PocoConfigPackageLocation}/V39")
install(FILES cmake/V313/FindSQLite3.cmake
DESTINATION "${PocoConfigPackageLocation}/V313")
endif()

message(STATUS "CMake ${CMAKE_VERSION} successfully configured ${PROJECT_NAME} using ${CMAKE_GENERATOR} generator")
Expand Down
2 changes: 1 addition & 1 deletion Data/PostgreSQL/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ set_target_properties(DataPostgreSQL
DEFINE_SYMBOL PostgreSQL_EXPORTS
)

target_link_libraries(DataPostgreSQL PUBLIC Poco::Data PostgreSQL::client)
target_link_libraries(DataPostgreSQL PUBLIC Poco::Data PostgreSQL::PostgreSQL)
target_include_directories(DataPostgreSQL
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Expand Down
148 changes: 0 additions & 148 deletions cmake/FindODBC.cmake

This file was deleted.

Loading

0 comments on commit 3dd5287

Please sign in to comment.