diff --git a/CMakeLists.txt b/CMakeLists.txt index 6ce633870046ef0c59fd7d55625ae8dfa976b6d6..7443f1a9110e68d57f85f6241a76bb9f7f473aea 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,9 +1,6 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8) PROJECT(TDengine) -SET(CMAKE_C_STANDARD 11) -SET(CMAKE_VERBOSE_MAKEFILE ON) - SET(TD_CLUSTER FALSE) SET(TD_ACCOUNT FALSE) SET(TD_GRANT FALSE) @@ -21,17 +18,6 @@ INCLUDE(cmake/env.inc) INCLUDE(cmake/define.inc) INCLUDE(cmake/install.inc) -#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}) - ADD_SUBDIRECTORY(deps) ADD_SUBDIRECTORY(src) ADD_SUBDIRECTORY(tests) diff --git a/src/dnode/CMakeLists.txt b/src/dnode/CMakeLists.txt index d85782b463f4ca579c9874ee1050593ff01f40ca..b23075e439bde36d0e5f33c032bf31a18139ccad 100644 --- a/src/dnode/CMakeLists.txt +++ b/src/dnode/CMakeLists.txt @@ -15,6 +15,13 @@ IF ((TD_LINUX_64) OR (TD_LINUX_32 AND TD_ARM)) ADD_EXECUTABLE(taosd ${SRC}) TARGET_LINK_LIBRARIES(taosd mnode taos_static monitor http tsdb) + IF (TD_ACCOUNT) + TARGET_LINK_LIBRARIES(taosd account) + ENDIF () + IF (TD_GRANT) + TARGET_LINK_LIBRARIES(taosd grant) + ENDIF () + #IF (TD_CLUSTER) # TARGET_LINK_LIBRARIES(taosd dcluster) #ENDIF () diff --git a/src/mnode/CMakeLists.txt b/src/mnode/CMakeLists.txt index 12f761645b02f09e3ceac25770ed116126ab80e8..3d8e712edd913d8fd197d1d569862d91d83c32a0 100644 --- a/src/mnode/CMakeLists.txt +++ b/src/mnode/CMakeLists.txt @@ -14,13 +14,6 @@ IF ((TD_LINUX_64) OR (TD_LINUX_32 AND TD_ARM)) ADD_LIBRARY(mnode ${SRC}) TARGET_LINK_LIBRARIES(mnode trpc tutil pthread) - - IF (TD_ACCOUNT) - TARGET_LINK_LIBRARIES(account) - ENDIF () - IF (TD_GRANT) - TARGET_LINK_LIBRARIES(grant) - ENDIF () ENDIF () diff --git a/src/mnode/src/mgmtAcct.c b/src/mnode/src/mgmtAcct.c index a716a955da0f4421d0fff96f4c8a5790f03ae193..e7a05928bb2bcc35d215ce12d45111a74bdeffa0 100644 --- a/src/mnode/src/mgmtAcct.c +++ b/src/mnode/src/mgmtAcct.c @@ -16,6 +16,7 @@ #define _DEFAULT_SOURCE #ifndef _ACCOUNT #include "os.h" +#include "taoserror.h" #include "mnode.h" #include "mgmtAcct.h" diff --git a/src/mnode/src/mgmtDb.c b/src/mnode/src/mgmtDb.c index 5af608737282e5c2b749ed8eff4e3d814e259d44..41e7a70276a9a8b62a36842774717be34258129e 100644 --- a/src/mnode/src/mgmtDb.c +++ b/src/mnode/src/mgmtDb.c @@ -35,7 +35,7 @@ #include "mgmtUser.h" #include "mgmtVgroup.h" -static void *tsDbSdb = NULL; +void * tsDbSdb = NULL; static int32_t tsDbUpdateSize; static int32_t mgmtCreateDb(SAcctObj *pAcct, SCMCreateDbMsg *pCreate); diff --git a/src/mnode/src/mgmtGrant.c b/src/mnode/src/mgmtGrant.c index 1ccd9894c9e8694c80f19736d701dd23abe71929..774f642456558998d1b8b0dd1cb55e6b2ba4c354 100644 --- a/src/mnode/src/mgmtGrant.c +++ b/src/mnode/src/mgmtGrant.c @@ -16,6 +16,7 @@ #define _DEFAULT_SOURCE #ifndef _GRANT #include "os.h" +#include "taoserror.h" #include "tlog.h" #include "mgmtGrant.h" diff --git a/src/mnode/src/mgmtUser.c b/src/mnode/src/mgmtUser.c index 65abcfecbcdbbe1b627a90c8a9ecb68f0955c33f..4ed28bd594cbc85f115fa0b4ff509359eb9ebe05 100644 --- a/src/mnode/src/mgmtUser.c +++ b/src/mnode/src/mgmtUser.c @@ -25,7 +25,7 @@ #include "mgmtShell.h" #include "mgmtUser.h" -static void *tsUserSdb = NULL; +void * tsUserSdb = NULL; static int32_t tsUserUpdateSize = 0; static int32_t mgmtDropUser(SAcctObj *pAcct, char *name); diff --git a/src/util/src/version.c b/src/util/src/version.c index d1294801ee7e29cdc91e8096889e7b06baf7bb67..b6e10d8b7ecef6f864c3d90e891705fbddf7db25 100644 --- a/src/util/src/version.c +++ b/src/util/src/version.c @@ -1,7 +1,7 @@ -char version[64] = "1.6.5.4"; -char compatible_version[64] = "1.6.1.0"; +char version[64] = "2.0.0.0"; +char compatible_version[64] = "2.0.0.0"; char gitinfo[128] = "3264067e97300c84caa61ac909d548c9ca56de6b"; char gitinfoOfInternal[128] = "da88f4a2474737d1f9c76adcf0ff7fd0975e7342"; -char buildinfo[512] = "Built by root at 2020-02-05 14:38"; +char buildinfo[512] = "Built by root at 2020-04-01 14:38"; void libtaos_1_6_5_4_Linux_x64() {};