|
@@ -52,6 +52,7 @@ IF ("${COMMONSETUP_DONE}" STREQUAL "")
|
|
|
set (USE_OPENSSL 1) # option(USE_OPENSSL "Configure use of OpenSSL" ON)
|
|
|
option(USE_ZLIB "Configure use of zlib" ON)
|
|
|
option(USE_NATIVE_LIBRARIES "Search standard OS locations for thirdparty libraries" ON)
|
|
|
+ option(USE_GIT_DESCRIBE "Use git describe to generate BUILD_TAG" OFF)
|
|
|
|
|
|
option(PORTALURL "Set url to hpccsystems portal download page")
|
|
|
|
|
@@ -103,6 +104,9 @@ IF ("${COMMONSETUP_DONE}" STREQUAL "")
|
|
|
if ("${CMAKE_BUILD_TYPE}" MATCHES "Debug")
|
|
|
add_definitions(/ZI)
|
|
|
endif ()
|
|
|
+ if ("${GIT_COMMAND}" STREQUAL "")
|
|
|
+ set ( GIT_COMMAND "git.cmd" )
|
|
|
+ endif ()
|
|
|
else ()
|
|
|
if (NOT CMAKE_USE_PTHREADS_INIT)
|
|
|
message (FATAL_ERROR "pthreads support not detected")
|
|
@@ -116,6 +120,9 @@ IF ("${COMMONSETUP_DONE}" STREQUAL "")
|
|
|
endif ()
|
|
|
# All of these are defined in platform.h too, but need to be defned before any system header is included
|
|
|
ADD_DEFINITIONS (-D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -D__USE_LARGEFILE64=1 -D__USE_FILE_OFFSET64=1)
|
|
|
+ if ("${GIT_COMMAND}" STREQUAL "")
|
|
|
+ set ( GIT_COMMAND "git" )
|
|
|
+ endif ()
|
|
|
endif ()
|
|
|
|
|
|
macro(HPCC_ADD_LIBRARY target)
|