From 0f331d2ddf079056adeb1b9493b477101cbf29e5 Mon Sep 17 00:00:00 2001 From: slguan Date: Sun, 29 Mar 2020 18:07:08 +0800 Subject: [PATCH] [TD-58] change cmake files --- cmake/env.inc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/cmake/env.inc b/cmake/env.inc index 4633c856b5..fbfa40e5ae 100755 --- a/cmake/env.inc +++ b/cmake/env.inc @@ -1,6 +1,20 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8) PROJECT(TDengine) +SET(CMAKE_C_STANDARD 11) +SET(CMAKE_VERBOSE_MAKEFILE ON) + +#set output directory +SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/build/lib) +SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/build/bin) +SET(TD_TESTS_OUTPUT_DIR ${PROJECT_BINARY_DIR}/test) + +MESSAGE(STATUS "Operating system dependency directory: " ${TD_OS_DIR}) +MESSAGE(STATUS "Project source directory: " ${PROJECT_SOURCE_DIR}) +MESSAGE(STATUS "Project binary files output path: " ${PROJECT_BINARY_DIR}) +MESSAGE(STATUS "Project executable files output path: " ${EXECUTABLE_OUTPUT_PATH}) +MESSAGE(STATUS "Project library files output path: " ${LIBRARY_OUTPUT_PATH}) + FIND_PROGRAM(TD_MVN_INSTALLED mvn) IF (TD_MVN_INSTALLED) MESSAGE(STATUS "MVN is installed and JDBC will be compiled") -- GitLab