Module: kamailio Branch: master Commit: 3cda0c0040e7f0e50eed588248d513bbf8f1610a URL: https://github.com/kamailio/kamailio/commit/3cda0c0040e7f0e50eed588248d513bbf8f1610a
Author: Xenofon Karamanos <[email protected]> Committer: Xenofon Karamanos <[email protected]> Date: 2026-01-28T10:29:37Z cmake: Adjust passing env variable - CMake was double quote if containing spaces or special shell characters breaking the build. - Pass env with cmake tool --- Modified: cmake/dbschema.cmake --- Diff: https://github.com/kamailio/kamailio/commit/3cda0c0040e7f0e50eed588248d513bbf8f1610a.diff Patch: https://github.com/kamailio/kamailio/commit/3cda0c0040e7f0e50eed588248d513bbf8f1610a.patch --- diff --git a/cmake/dbschema.cmake b/cmake/dbschema.cmake index de0f1ef7875..b557ad5789a 100644 --- a/cmake/dbschema.cmake +++ b/cmake/dbschema.cmake @@ -80,11 +80,14 @@ function(add_db_target db_name xsl_file) endif() # Stringparam db is the db_* module name + # https://stackoverflow.com/a/66333704 + # https://gitlab.kitware.com/cmake/cmake/-/issues/18062 add_custom_command( TARGET dbschema_${db_name} PRE_BUILD COMMAND - "XML_CATALOG_FILES=${CATALOG}" ${XSLTPROC_EXECUTABLE} ${XSLTPROC_FLAGS} --stringparam dir + ${CMAKE_COMMAND} -E env XML_CATALOG_FILES=${CATALOG} ${XSLTPROC_EXECUTABLE} + ${XSLTPROC_FLAGS} --stringparam dir ${CMAKE_BINARY_DIR}/utils/kamctl/${db_name_folder}/${folder_suffix} --stringparam prefix ${prefix} --stringparam db ${db_name} ${xsl_file} "kamailio-${table}.xml" WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/src/lib/srdb1/schema" _______________________________________________ Kamailio - Development Mailing List -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!
