summaryrefslogtreecommitdiffstats
path: root/Modules/FindPostgreSQL.cmake
Commit message (Collapse)AuthorAgeFilesLines
* FindPostgreSQL: Add support for version 17Brad King2025-11-121-0/+2
|
* Find*: Update *_FOUND variablesPeter Kokot2025-09-231-1/+1
| | | | | | | | | | | | | | | | | | | | | This marks all `<PACKAGENAME>_FOUND` result variables as deprecated where possible (for `<PackageName>` find modules) to make it clearer which variable to use. In CMake 3.3, the FindPackageHandleStandardArgs module was refactored to set both `<PackageName>_FOUND` and uppercase `<PACKAGENAME>_FOUND` result variables to the same values. Before that, the FOUND_VAR argument could be used to set the result variable. * FindMatlab: Uppercased MATLAB_FOUND is not mentioned as it was never documented. * Documentation for FindPythonInterp and FindPythonLibs modules synced accordingly to their deprecation (3.12 instead of 4.2). * OPENGL_FOUND: deprecation version synced with other find modules. * DevIL_FOUND was introduced in CMake 3.8. The uppercased variant not mentioned as it was previously never documented. Fixes: #27242
* FindPostgreSQL: Add PostgreSQL_VERSIONPeter Kokot2025-07-301-7/+32
| | | | | | This deprecates the PostgreSQL_VERSION_STRING result variable. Issue: #27088
* FindPostgreSQL: Update documentationPeter Kokot2025-04-051-14/+70
| | | | | | - Added examples section. - Updated and synced descriptions. - Added CMake version 3.20 that introduced the Server component.
* LICENSE: Replace references to Copyright.txt with LICENSE.rstKitware Robot2025-03-031-1/+1
| | | | | | | | | | ``` git grep -lz 'Copyright.txt or https://cmake.org/licensing ' | while IFS= read -r -d $'\0' f ; do sed -i '/Copyright.txt or https:\/\/cmake.org\/licensing / { s/Copyright.txt/LICENSE.rst/ }' "$f" ; done ```
* Help: Use Title Case for all "Imported Targets" sectionsNikita Nemkin2025-01-311-1/+1
|
* Modules/Find*: Include FindPackageHandleStandardArgs normallyBrad King2025-01-301-1/+1
| | | | | | | Since commit d74210a8bd (CMP0017: Remove support for OLD behavior, 2024-11-17) we can rely on CMP0017's NEW behavior unconditionally. Calling `include(FindPackageHandleStandardArgs)` in a builtin module will always get the builtin `FindPackageHandleStandardArgs`.
* CMP0057: Remove support for OLD behaviorBrad King2025-01-221-1/+0
|
* FindPackageHandleStandardArgs: Clarify the FOUND_VAR optionPeter Kokot2024-12-311-1/+0
| | | | | | | | The `find_package_handle_standard_args(FOUND_VAR)` is deprecated as of CMake 3.3 and both the `<PackageName>_FOUND` and the upper-cased `<PACKAGE_NAME>_FOUND` are set with or without using this option. Additionally, find modules and docs are also synced with this to make it clearer.
* Modules: Fix CMP0159 warnings in modules when tracingJuan Ramos2024-03-291-0/+1
| | | | Closes: #25829
* FindPostgreSQL: Add support for version 16Brad King2023-10-021-2/+2
| | | | Fixes: #25292
* FindPostgreSQL: Add support for version 15Brad King2023-06-161-2/+2
|
* FindPostgreSQL: Add brew-style directories to search pathparkesb2022-08-311-0/+3
| | | | | As of 14.5, homebrew names PostgreSQL directories with the version number, e.g., `postgresql@14`.
* FindPostgreSQL: add support for PostgreSQL 14Even Rouault2022-04-111-2/+2
|
* FindPostgreSQL: Update known versions in documentationKai Pastor2022-03-171-1/+1
|
* FindPostgreSQL: Add server componentAlexey Edelev2021-01-151-1/+24
| | | | | | | Require the server-specific artifacts only if the Server component is requested. Issue: #17223
* FindPostgreSQL: Do not require pg_type.hAlexey Edelev2021-01-041-4/+7
| | | | | | | | | | In systems where PostgreSQL has separate developer packages for server and client libraries `PostgreSQL_TYPE_INCLUDE_DIR` is not specified. According to initial logic server part was not required but was accidentally added to `REQUIRED_VARS` during the migration to `find_package_handle_standard_args`. Fixes: #17223
* Help: Add `.. versionadded` directives to module docsNikita Nemkin2020-12-021-0/+2
| | | | Issue: #19715
* FindPostgreSQL: support version 13Pavel Cernohorsky2020-11-051-1/+1
|
* Merge topic 'FindPostgreSQL-macports-libsuffix'Brad King2019-11-151-0/+1
|\ | | | | | | | | | | | | 24ae45fb0c FindPostgreSQL: also search for libraries in the MacPorts suffix Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4043
| * FindPostgreSQL: also search for libraries in the MacPorts suffixBen Boeckel2019-11-131-0/+1
| |
* | FindPostgreSQL: support version encoding used in pre-10 releasesBen Boeckel2019-11-041-5/+16
|/ | | | | | | | | With the 10.x release, PostgreSQL upstream started encoding the version as `MMmmmm` where `M` is major and `m` is minor. Prior to that, `MMmmPP` was used where `P` was the patch number. Detect this difference and decode it based on the used encoding. Fixes: #19912
* FindPostgreSQL: support macports installation schemeBen Boeckel2019-10-111-0/+3
| | | | | | Macports installs into `include/postgresql${suffix}`. Add this to the list of supported suffixes. Also copy the non-server `postgresql/${suffix}` path.
* FindPostgreSQL: support version 12Ben Boeckel2019-10-111-1/+1
|
* FindPostgreSQL: Fix regression in computation of library directoryBrad King2019-07-021-1/+8
| | | | | | | | | | | Since commit 368bcba28a (FindPostgreSQL: Find debug lib, imported configs, 2019-05-09, v3.15.0-rc1~93^2) the `PostgreSQL_LIBRARY` variable may contain a list and therefore should not be passed to the `get_filename_component` command directly. Instead spell out the logic to compute `PostgreSQL_LIBRARY_DIR` from one of the per-configuration variables. Fixes: #19444
* FindPostgreSQL: Find debug lib, imported configsAndrei Lebedev2019-05-201-13/+46
| | | | | | | | * Add find_library calls for debug and release * Set imported configs for corresponding libraries in imported target * Set debug/optimized in PostgreSQL_LIBRARIES Signed-off-by: Andrei Lebedev <lebdron@gmail.com>
* FindPostgreSQL: extract the actual version numberBen Boeckel2018-11-051-3/+23
| | | | | | | | The `PG_VERSION` variable can be mangled by distributions to indicate things like the name of the distro and package build numbers. However, `PG_VERSION_NUM` is new in 8.2 (2006), so keep the old extraction code around for old versions.
* FindPostgreSQL: add an imported targetBen Boeckel2018-11-011-0/+14
|
* FindPostgreSQL: Modernize documentation layoutBrad King2018-11-011-8/+15
|
* Merge topic 'FindPostgreSQL-11'Brad King2018-10-311-2/+2
|\ | | | | | | | | | | | | | | eea851bc2e FindPostgreSQL: Search for version 11 Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Mateusz Łoskot <mateusz@loskot.net> Merge-request: !2547
| * FindPostgreSQL: Search for version 11Sylvain Joubert2018-10-301-2/+2
| |
* | Help: Convert remaining modules to block-style commentsKitware Robot2018-10-221-14/+15
|/
* Merge topic 'FindPostgres_support_for_v10'Brad King2018-01-091-2/+2
|\ | | | | | | | | | | | | 9417a6d3 FindPostgreSQL: Add support for PG10 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1635
| * FindPostgreSQL: Add support for PG10Egor Pugin2018-01-091-2/+2
| |
* | Various typo fixesLuz Paz2018-01-031-1/+1
|/ | | | Some are user-facing. Others are source comments.
* FindPostgreSQL: automatically find installations from yum.postgresql.orgRolf Eike Beer2017-01-101-1/+6
| | | | | | | | In commit v3.3.0-rc1~4^2 (FindPostgreSQL: Search some more common packaging locations) the PostgreSQL_ADDITIONAL_SEARCH_PATHS variable was removed. This was used e.g. by osm2pgsql to be able to build on CentOS with recent PostgreSQL versions. At least add those locations from yum.postgresql.org, which is a more or less official location.
* Simplify CMake per-source license noticesBrad King2016-09-271-13/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Per-source copyright/license notice headers that spell out copyright holder names and years are hard to maintain and often out-of-date or plain wrong. Precise contributor information is already maintained automatically by the version control tool. Ultimately it is the receiver of a file who is responsible for determining its licensing status, and per-source notices are merely a convenience. Therefore it is simpler and more accurate for each source to have a generic notice of the license name and references to more detailed information on copyright holders and full license terms. Our `Copyright.txt` file now contains a list of Contributors whose names appeared source-level copyright notices. It also references version control history for more precise information. Therefore we no longer need to spell out the list of Contributors in each source file notice. Replace CMake per-source copyright/license notice headers with a short description of the license and links to `Copyright.txt` and online information available from "https://cmake.org/licensing". The online URL also handles cases of modules being copied out of our source into other projects, so we can drop our notices about replacing links with full license text. Run the `Utilities/Scripts/filter-notices.bash` script to perform the majority of the replacements mechanically. Manually fix up shebang lines and trailing newlines in a few files. Manually update the notices in a few files that the script does not handle.
* FindPostgreSQL: Search for version 9.6Tamar Kranenburg2016-09-181-2/+2
|
* FindPostgreSQL: Correct comment about known postgres versionsTamar Kranenburg2016-09-181-1/+1
|
* FindPostgreSQL: Fix initialization of PostgreSQL_LIBRARIESNils Gladitz2016-07-141-1/+1
|
* FindPostgreSQL: Search for version 9.5Tamar Kranenburg2015-10-121-1/+1
|
* FindPostgreSQL: Search some more common packaging locationsTamar Kranenburg2015-06-011-9/+17
| | | | | | | | | | | | | | | | Use PATH_SUFFIXES to search more common packaging locations. On Windows, we can use suffixes to search in the standard Program Files locations without hard-coding the C:/ path. On Ubuntu/Debian, starting with PostgreSQL 9.3 the header file pg_type.h is moved to a separate package (from libpq-dev to postgresql-server-dev) and consequently the file pg_type.h is moved to a new location: /usr/include/postgresql/<version>/server/catalog/pg_type.h While at it, use separate PATH_SUFFIXES variables for library, type and include (this is merely an optimization).
* FindPostgreSQL: Add help text for PostgreSQL_LIBRARY cache entryTamar Kranenburg2015-06-011-0/+2
| | | | | The PostgreSQL_LIBRARY_DIR_MESSAGE variable was set with the needed text but never referenced.
* FindPostgreSQL: Document PostgreSQL_LIBRARY_DIRS result variableTamar Kranenburg2015-06-011-0/+1
|
* FindPostgreSQL: Search for versions 9.2, 9.3, and 9.4Tamar Kranenburg2015-06-011-2/+2
|
* FindPostgreSQL: Remove extra whitespace after command open parensTamar Kranenburg2015-06-011-3/+3
|
* FindPostgreSQL: Remove unused linesTamar Kranenburg2015-06-011-5/+0
|
* FindPostgreSQL: Fix for pg_config in multilib configurations.Chuck Atkins2014-09-021-6/+16
| | | | | | | Some platforms, Fedora 20 and RHEL 7 in particular, will have multiple pg_config_${arch}.h files all included by the top level pg_config.h. This checks all of the available pg_config*.h headers for version information.
* Convert builtin help to reStructuredText source filesKitware Robot2013-10-151-6/+14
| | | | | | | | Run the convert-help.bash script to convert documentation: ./convert-help.bash "/path/to/CMake-build/bin" Then remove it.
* Find PostgreSQL headers on DebianPere Nubiola i Radigales2012-10-151-0/+1
| | | | Fixes Debian bug 665721 (http://bugs.debian.org/665721)