Lines 1-5
Link Here
|
1 |
--- ./Automoc4Config.cmake.orig 2012-05-28 10:08:18.449122610 +0200 |
1 |
--- Automoc4Config.cmake.orig 2009-01-22 18:50:09 UTC |
2 |
+++ ./Automoc4Config.cmake 2012-05-28 10:09:14.719218317 +0200 |
2 |
+++ Automoc4Config.cmake |
3 |
@@ -49,7 +49,8 @@ |
3 |
@@ -49,7 +49,8 @@ |
4 |
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
4 |
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
5 |
|
5 |
|
Lines 10-12
Link Here
|
10 |
|
10 |
|
11 |
# set the automoc version number |
11 |
# set the automoc version number |
12 |
include(${_AUTOMOC4_CURRENT_DIR}/Automoc4Version.cmake) |
12 |
include(${_AUTOMOC4_CURRENT_DIR}/Automoc4Version.cmake) |
|
|
13 |
@@ -114,7 +115,6 @@ macro(AUTOMOC4 _target_NAME _SRCS) |
14 |
if(_moc_files) |
15 |
set(_automoc_source "${CMAKE_CURRENT_BINARY_DIR}/${_target_NAME}_automoc.cpp") |
16 |
get_directory_property(_moc_incs INCLUDE_DIRECTORIES) |
17 |
- get_directory_property(_moc_defs DEFINITIONS) |
18 |
get_directory_property(_moc_cdefs COMPILE_DEFINITIONS) |
19 |
|
20 |
# configure_file replaces _moc_files, _moc_incs, _moc_cdefs and _moc_defs |
21 |
@@ -176,7 +176,6 @@ macro(_ADD_AUTOMOC4_TARGET _target_NAME |
22 |
set(_automoc_source "${CMAKE_CURRENT_BINARY_DIR}/${_target_NAME}.cpp") |
23 |
set(_automoc_dotFiles "${CMAKE_CURRENT_BINARY_DIR}/${_target_NAME}.cpp.files") |
24 |
get_directory_property(_moc_incs INCLUDE_DIRECTORIES) |
25 |
- get_directory_property(_moc_defs DEFINITIONS) |
26 |
get_directory_property(_moc_cdefs COMPILE_DEFINITIONS) |
27 |
|
28 |
# configure_file replaces _moc_files, _moc_incs, _moc_cdefs and _moc_defs |
29 |
@@ -245,5 +244,7 @@ endmacro(_AUTOMOC4_KDE4_PRE_TARGET_HANDL |
30 |
|
31 |
|
32 |
macro(_AUTOMOC4_KDE4_POST_TARGET_HANDLING _target) |
33 |
- add_dependencies(${_target} "${_target}_automoc") |
34 |
+ if (TARGET "${_target}_automoc") |
35 |
+ add_dependencies(${_target} "${_target}_automoc") |
36 |
+ endif() |
37 |
endmacro(_AUTOMOC4_KDE4_POST_TARGET_HANDLING) |