|
@@ -53,7 +53,7 @@ IF ("${COMMONSETUP_DONE}" STREQUAL "")
|
|
|
option(PLUGIN "Enable building of a plugin" OFF)
|
|
|
option(USE_SHLIBDEPS "Enable the use of dpkg-shlibdeps on ubuntu packaging" OFF)
|
|
|
|
|
|
- option(SIGN_MODULES "Enable signing of ecl standard library modules" OFF)
|
|
|
+ option(SIGN_MODULES "Enable signing of ecl standard library modules" ON)
|
|
|
option(USE_CPPUNIT "Enable unit tests (requires cppunit)" OFF)
|
|
|
option(USE_OPENLDAP "Enable OpenLDAP support (requires OpenLDAP)" ON)
|
|
|
option(USE_ICU "Enable unicode support (requires ICU)" ON)
|
|
@@ -114,6 +114,32 @@ IF ("${COMMONSETUP_DONE}" STREQUAL "")
|
|
|
option(EXAMPLEPLUGIN "Create a package with ONLY the exampleplugin plugin" OFF)
|
|
|
option(COUCHBASEEMBED "Create a package with ONLY the couchbaseembed plugin" OFF)
|
|
|
|
|
|
+ if (SIGN_MODULES)
|
|
|
+ message(STATUS "GPG signing check")
|
|
|
+ if(DEFINED SIGN_MODULES_PASSPHRASE)
|
|
|
+ set(GPG_PASSPHRASE_OPTION --passphrase)
|
|
|
+ endif()
|
|
|
+ if(DEFINED SIGN_MODULES_KEYID)
|
|
|
+ set(GPG_DEFAULT_KEY_OPTION --default-key)
|
|
|
+ endif()
|
|
|
+ execute_process(
|
|
|
+ COMMAND rm -f sm_keycheck.tmp sm_keycheck.asc
|
|
|
+ COMMAND touch sm_keycheck.tmp
|
|
|
+ COMMAND gpg --output sm_keycheck.asc ${GPG_DEFAULT_KEY_OPTION} ${SIGN_MODULES_KEYID} --clearsign ${GPG_PASSPHRASE_OPTION} ${SIGN_MODULES_PASSPHRASE} --batch --no-tty sm_keycheck.tmp
|
|
|
+ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
|
|
+ RESULT_VARIABLE rc_var
|
|
|
+ ERROR_VARIABLE err_var
|
|
|
+ OUTPUT_QUIET)
|
|
|
+ if(NOT "${rc_var}" STREQUAL "0")
|
|
|
+ message(STATUS "GPG signing check - failed")
|
|
|
+ message(FATAL_ERROR "gpg signing of std ecllibrary unsupported in current environment. \
|
|
|
+ If you wish to build without a signed std ecllibrary add -DSIGN_MODULES=OFF to your \
|
|
|
+ cmake invocation.\n${err_var}")
|
|
|
+ else()
|
|
|
+ message(STATUS "GPG signing check - done")
|
|
|
+ endif()
|
|
|
+ endif()
|
|
|
+
|
|
|
if (APPLE OR WIN32)
|
|
|
option(USE_TBB "Enable Threading Building Block support" OFF)
|
|
|
else()
|