mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-18 19:59:48 +08:00
Remove CMake debug printouts
Removing some debug printouts and moving some other status messages to more appropriate locations.
This commit is contained in:
parent
a77f9724fb
commit
c221c7845a
@ -81,12 +81,6 @@ if(VERSION_CONFIG
|
|||||||
set(DOWNGRADE_TO_VERSION ${CMAKE_MATCH_1})
|
set(DOWNGRADE_TO_VERSION ${CMAKE_MATCH_1})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
message(STATUS "VERSION: ${VERSION}")
|
|
||||||
message(STATUS "VERSION_MOD: ${VERSION_MOD}")
|
|
||||||
message(STATUS "PROJECT_VERSION_MOD: ${PROJECT_VERSION_MOD}")
|
|
||||||
message(STATUS "UPDATE_FROM_VERSION: ${UPDATE_FROM_VERSION}")
|
|
||||||
message(STATUS "DOWNGRADE_TO_VERSION: ${DOWNGRADE_TO_VERSION}")
|
|
||||||
|
|
||||||
# a hack to avoid change of SQL extschema variable
|
# a hack to avoid change of SQL extschema variable
|
||||||
set(extschema "@extschema@")
|
set(extschema "@extschema@")
|
||||||
|
|
||||||
@ -161,11 +155,9 @@ endif()
|
|||||||
# Option to treat warnings as errors when compiling (default on for debug
|
# Option to treat warnings as errors when compiling (default on for debug
|
||||||
# builds, off for all other build types)
|
# builds, off for all other build types)
|
||||||
if(CMAKE_BUILD_TYPE STREQUAL Debug)
|
if(CMAKE_BUILD_TYPE STREQUAL Debug)
|
||||||
message(STATUS "CMAKE_BUILD_TYPE matches Debug")
|
|
||||||
option(WARNINGS_AS_ERRORS "Make compiler warnings into errors (default ON)"
|
option(WARNINGS_AS_ERRORS "Make compiler warnings into errors (default ON)"
|
||||||
ON)
|
ON)
|
||||||
else()
|
else()
|
||||||
message(STATUS "CMAKE_BUILD_TYPE does not match Debug")
|
|
||||||
option(WARNINGS_AS_ERRORS "Make compiler warnings into errors (default ON)"
|
option(WARNINGS_AS_ERRORS "Make compiler warnings into errors (default ON)"
|
||||||
OFF)
|
OFF)
|
||||||
endif()
|
endif()
|
||||||
@ -329,8 +321,6 @@ if(GIT_FOUND)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
message(STATUS "Using pg_config ${PG_CONFIG}")
|
|
||||||
|
|
||||||
# Check PostgreSQL version
|
# Check PostgreSQL version
|
||||||
execute_process(
|
execute_process(
|
||||||
COMMAND ${PG_CONFIG} --version
|
COMMAND ${PG_CONFIG} --version
|
||||||
@ -350,14 +340,14 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
set(PG_VERSION "${PG_VERSION_MAJOR}.${PG_VERSION_MINOR}")
|
set(PG_VERSION "${PG_VERSION_MAJOR}.${PG_VERSION_MINOR}")
|
||||||
|
|
||||||
message(STATUS "Compiling against PostgreSQL version ${PG_VERSION}")
|
|
||||||
|
|
||||||
# Ensure that PostgreSQL version is supported and consistent with src/compat.h
|
# Ensure that PostgreSQL version is supported and consistent with src/compat.h
|
||||||
# version check
|
# version check
|
||||||
if((${PG_VERSION_MAJOR} LESS "12")
|
if((${PG_VERSION_MAJOR} LESS "12")
|
||||||
OR (${PG_VERSION_MAJOR} GREATER "13")
|
OR (${PG_VERSION_MAJOR} GREATER "13")
|
||||||
AND NOT (${EXPERIMENTAL}))
|
AND NOT (${EXPERIMENTAL}))
|
||||||
message(FATAL_ERROR "TimescaleDB only supports PostgreSQL 12 and 13")
|
message(FATAL_ERROR "TimescaleDB only supports PostgreSQL 12 and 13")
|
||||||
|
else()
|
||||||
|
message(STATUS "Compiling against PostgreSQL version ${PG_VERSION}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Get PostgreSQL configuration from pg_config
|
# Get PostgreSQL configuration from pg_config
|
||||||
@ -596,7 +586,6 @@ if(USE_OPENSSL)
|
|||||||
endforeach()
|
endforeach()
|
||||||
set(OPENSSL_LIBRARIES ${_libraries})
|
set(OPENSSL_LIBRARIES ${_libraries})
|
||||||
endif()
|
endif()
|
||||||
message(STATUS "OPENSSL_LIBRARIES: ${OPENSSL_LIBRARIES}")
|
|
||||||
message(STATUS "Using OpenSSL version ${OPENSSL_VERSION}")
|
message(STATUS "Using OpenSSL version ${OPENSSL_VERSION}")
|
||||||
endif(USE_OPENSSL)
|
endif(USE_OPENSSL)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user