Remove REQUIRED from find_program in CMake

Remove option `REQUIRED` from calls to `find_program` in CMake files,
since such options doesn't exist and is ignored.
This commit is contained in:
Ruslan Fomkin 2019-06-13 14:57:05 +02:00 committed by Ruslan Fomkin
parent bbe0f70c35
commit 25a72f1547
2 changed files with 3 additions and 6 deletions

View File

@ -134,8 +134,7 @@ find_program(PG_CONFIG pg_config
PATH_SUFFIXES
bin
DOC
"The path to the pg_config of the PostgreSQL version to compile against"
REQUIRED)
"The path to the pg_config of the PostgreSQL version to compile against")
if (NOT PG_CONFIG)
message(FATAL_ERROR "Unable to find 'pg_config'")

View File

@ -1,8 +1,7 @@
# Testing support
find_program(PG_REGRESS pg_regress
HINTS
"${PG_PKGLIBDIR}/pgxs/src/test/regress/"
REQUIRED)
"${PG_PKGLIBDIR}/pgxs/src/test/regress/")
message(STATUS "Using pg_regress ${PG_REGRESS}")
@ -10,8 +9,7 @@ find_program(PG_ISOLATION_REGRESS pg_isolation_regress
HINTS
${BINDIR}/
${PG_PKGLIBDIR}/pgxs/src/test/isolation/
${PG_SOURCE_DIR}/src/test/isolation
REQUIRED)
${PG_SOURCE_DIR}/src/test/isolation)
message(STATUS "Using pg_isolation_regress ${PG_ISOLATION_REGRESS}")