Tell cmake to configure zm version and config path in cakephp

This commit is contained in:
Kyle Johnson 2014-11-21 21:04:46 +00:00
parent e541976b77
commit 403ece33bd
2 changed files with 5 additions and 0 deletions

View File

@ -10,3 +10,5 @@ configure_file(app/Config/database.php.default "${CMAKE_CURRENT_BINARY_DIR}/app/
# Configure core.php
configure_file(app/Config/core.php.default "${CMAKE_CURRENT_BINARY_DIR}/app/Config/core.php" @ONLY)
configure_file(app/Config/bootstrap.php "${CMAKE_CURRENT_BINARY_DIR}/app/Config/bootstrap.php" @ONLY)

View File

@ -106,3 +106,6 @@ CakeLog::config('error', array(
'types' => array('warning', 'error', 'critical', 'alert', 'emergency'),
'file' => 'error',
));
Configure::write('ZM_CONFIG', '@ZM_CONFIG@');
Configure::write('ZM_VERSION', '@VERSION@');