summaryrefslogtreecommitdiffstats
path: root/modules/TDEMacros.cmake
diff options
context:
space:
mode:
authorsamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-03-08 01:23:31 +0000
committersamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-03-08 01:23:31 +0000
commit3e1a04a699bf48454ccf547d9d7e871b96d21650 (patch)
treeba5b98bce177dfab1f4242cc152b8105458998f4 /modules/TDEMacros.cmake
parent1ff73c1b478bce203f43484a0adceb42025484f4 (diff)
downloadtde-cmake-3e1a04a699bf48454ccf547d9d7e871b96d21650.tar.gz
tde-cmake-3e1a04a699bf48454ccf547d9d7e871b96d21650.zip
[kde-common/cmake] tde_automoc: fixed variable colision
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kde-common/cmake@1224112 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'modules/TDEMacros.cmake')
-rw-r--r--modules/TDEMacros.cmake7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake
index 3a608c0..5764238 100644
--- a/modules/TDEMacros.cmake
+++ b/modules/TDEMacros.cmake
@@ -265,13 +265,14 @@ macro( tde_automoc )
# create header filename
get_filename_component( _src_path "${_src_file}" ABSOLUTE )
get_filename_component( _src_path "${_src_path}" PATH )
- get_filename_component( _src_file "${_moc_file}" NAME_WE )
- set( _header_file "${_src_path}/${_src_file}.h" )
+ get_filename_component( _src_header "${_moc_file}" NAME_WE )
+ set( _header_file "${_src_path}/${_src_header}.h" )
# if header doesn't exists, check in META_INCLUDES
if( NOT EXISTS "${_header_file}" )
+ unset( _found )
foreach( _src_path ${_meta_includes} )
- set( _header_file "${_src_path}/${_src_file}.h" )
+ set( _header_file "${_src_path}/${_src_header}.h" )
if( EXISTS "${_header_file}" )
set( _found 1 )
break( )