[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/cmake/modules
From: Alexander Neundorf <neundorf () kde ! org>
Date: 2006-07-12 19:34:44
Message-ID: 1152732884.130764.26887.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 561632 by neundorf:
-KDE4_AUTOMOC: give a better error message if the header which should exist for \
creating the moc file doesn't exist
This means that cmake will now abort if there is the header file which
is required for KDE4_AUTOMOC is missing at cmake time.
I think this shouldn't break anything, but I don't have enough computing power here \
to check all modules.
CCMAIL: kde-buildsystem@kde.org
CCMAIL: kde-core-devel@kde.org
Alex
M +5 -2 KDE4Macros.cmake
--- trunk/KDE/kdelibs/cmake/modules/KDE4Macros.cmake #561631:561632
@@ -154,10 +154,13 @@
string(REGEX MATCH "[^ <\"]+\\.moc" _current_MOC \
"${_current_MOC_INC}")
get_filename_component(_basename ${_current_MOC} NAME_WE)
-# set(_header ${CMAKE_CURRENT_SOURCE_DIR}/${_basename}.h)
set(_header ${_abs_PATH}/${_basename}.h)
set(_moc ${CMAKE_CURRENT_BINARY_DIR}/${_current_MOC})
- #set(_moc ${_abs_PATH}/${_current_MOC})
+
+ if (NOT EXISTS ${_abs_PATH}/${_basename}.h)
+ message(FATAL_ERROR "In the file \"${_abs_FILE}\" the moc file \
\"${_current_MOC}\" is included, but \"${_abs_PATH}/${_basename}.h\" doesn't exist.") \
+ endif (NOT EXISTS ${_abs_PATH}/${_basename}.h) +
add_custom_command(OUTPUT ${_moc}
COMMAND ${QT_MOC_EXECUTABLE}
ARGS ${_moc_INCS} ${_header} -o ${_moc}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic