1
0
Fork 0

allow to specify the directory for the windows client build

This commit is contained in:
Wilfried Goesgens 2017-02-14 17:07:59 +01:00
parent 0f4b932717
commit e10dca6417
2 changed files with 11 additions and 1 deletions

View File

@ -268,6 +268,12 @@ while [ $# -gt 0 ]; do
shift
;;
--clientBuildDir)
shift
CONFIGURE_OPTIONS="${CONFIGURE_OPTIONS} -DCLIENT_BUILD_DIR=$1"
shift
;;
--cswgcc)
export CC="/opt/csw/bin/gcc"
export CXX="/opt/csw/bin/g++"

View File

@ -82,7 +82,11 @@ list(APPEND PACKAGES_LIST package-arongodb-server-zip)
################################################################################
# hook to build the client package
################################################################################
set(CLIENT_BUILD_DIR ${CMAKE_CURRENT_BINARY_DIR}/../p)
string(LENGTH "${CLIENT_BUILD_DIR}" CLIENT_BUILD_DIR_LEN)
if (${CLIENT_BUILD_DIR_LEN} EQUAL 0)
set(CLIENT_BUILD_DIR ${CMAKE_CURRENT_BINARY_DIR}/../p)
endif()
configure_file(cmake/packages/client/nsis.txt ${CLIENT_BUILD_DIR}/CMakeLists.txt @ONLY)
add_custom_target(package-arongodb-client-nsis
COMMAND ${CMAKE_COMMAND} .