timescaledb/test/perl/CMakeLists.txt
Sven Klemm be44b1d87f Skip perl file installation without TAP_CHECKS
Don't install the TAP-related perl files when TAP checks has been
disabled. Installing this files unconditionally creates problem
when building packages as these files should not be part of the
package.
2021-08-01 19:56:37 +02:00

7 lines
270 B
CMake

set(PERL_FILES AccessNode.pm DataNode.pm TimescaleNode.pm)
# Check if PostgreSQL was compiled with --enable-tap-tests
if(TAP_CHECKS AND EXISTS "${PG_PKGLIBDIR}/pgxs/src/test/perl")
install(FILES ${PERL_FILES} DESTINATION "${PG_PKGLIBDIR}/pgxs/src/test/perl")
endif()