summaryrefslogtreecommitdiffstats
path: root/Modules/FindPostgreSQL.cmake
Commit message (Collapse)AuthorAgeFilesLines
* 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)
* include FPHSA from current directory in all modulesRolf Eike Beer2012-09-081-1/+1
|
* use the find_* functions ENV parameterRolf Eike Beer2012-08-141-6/+1
| | | | | | | | | Instead of directly passing $ENV{SOMEVAR} to a find_* call pass in ENV SOMEVAR. This will make sure the paths will get correctly handled through different platforms, especially on Windows. Also fixes one place where paths with windows delimiters (\) were hardcoded to use forward slashes.
* Remove CMake-language block-end command argumentsKitware Robot2012-08-131-4/+4
| | | | | | | | | | | | | | | | | Ancient versions of CMake required else(), endif(), and similar block termination commands to have arguments matching the command starting the block. This is no longer the preferred style. Run the following shell code: for c in else endif endforeach endfunction endmacro endwhile; do echo 's/\b'"$c"'\(\s*\)(.\+)/'"$c"'\1()/' done >convert.sed && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' | egrep -z -v '^(Utilities/cm|Source/kwsys/)' | egrep -z -v 'Tests/CMakeTests/While-Endwhile-' | xargs -0 sed -i -f convert.sed && rm convert.sed
* Convert CMake-language commands to lower caseKitware Robot2012-08-131-2/+2
| | | | | | | | | | | | | | | | | Ancient CMake versions required upper-case commands. Later command names became case-insensitive. Now the preferred style is lower-case. Run the following shell code: cmake --help-command-list | grep -v "cmake version" | while read c; do echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g' done >convert.sed && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' | egrep -z -v '^(Utilities/cm|Source/kwsys/)' | xargs -0 sed -i -f convert.sed && rm convert.sed
* FindPostgreSQL: support version selectionRolf Eike Beer2012-01-261-16/+16
|
* FindPostgreSQL: fix PATH_SUFFIXES, better output for FPHSAAlex Neundorf2011-08-011-5/+4
| | | | Alex
* Mark the results from find() as advancedAlex Neundorf2011-08-011-0/+2
| | | | Alex
* Use FPHSA(), remove unnecessary stuff and don't recommend link_directories()Alex Neundorf2011-08-011-38/+8
| | | | | | | -don't recommend using link_directories() -don't do the extra if(EXISTS) checks, since the code is already inside a if(PostgreSQL_FOUND) Alex
* More PATH_SUFFIXES for finding Postgresql and also search catalog/pg_type.hAlex Neundorf2011-08-011-0/+22
| | | | | | Patch from Jaroslaw Staniek, reviewed by Andrew Maclean Alex
* Documentation: Fix a few typos (#11883)Modestas Vainius2011-02-221-3/+1
| | | | | | | | | | | | | W: cmake: manpage-has-errors-from-man usr/share/man/man1/cmake.1.gz 10029: warning [p 158, 13.5i]: can't break line I: cmake: spelling-error-in-manpage usr/share/man/man1/cmake.1.gz informations information I: cmake: spelling-error-in-manpage usr/share/man/man1/cmake.1.gz dependant dependent I: cmake: spelling-error-in-manpage usr/share/man/man1/cmake.1.gz prefered preferred I: cmake: spelling-error-in-binary ./usr/bin/cmake prefered preferred I: cmake: spelling-error-in-binary ./usr/bin/cpack prefered preferred I: cmake: spelling-error-in-binary ./usr/bin/ctest prefered preferred I: cmake-data: spelling-error-in-manpage usr/share/man/man1/cmakepolicies.1.gz prefered preferred I: cmake-curses-gui: spelling-error-in-binary ./usr/bin/ccmake prefered preferred I: cmake-qt-gui: spelling-error-in-binary ./usr/bin/cmake-gui prefered preferred
* Modules: Fix spelling 'To distributed' -> 'To distribute'Todd Gamblin2010-08-091-1/+1
|
* Changed ADDITIONAL_SEARCH_PATHS to PostgreSQL_ADDITIONAL_SEARCH_PATHS.Andrew Maclean2010-07-091-2/+2
|
* Forgot the copyright notice.Andrew Maclean2010-07-081-0/+14
|
* Adding a FindPostgreSQL.cmake moduleAndrew Maclean2010-07-071-0/+167