aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Montel <montel@kde.org>2006-10-23 12:30:44 +0000
committerLaurent Montel <montel@kde.org>2006-10-23 12:30:44 +0000
commit2b18f1f332502c37793d3bfb74f6395c0d223c77 (patch)
treed9537a16749d55ad6eb28d27c0f796e8d8ba9001
parent2a7d2182355af2b9573233afff036907ccfe044a (diff)
downloadextra-cmake-modules-2b18f1f332502c37793d3bfb74f6395c0d223c77.tar.gz
extra-cmake-modules-2b18f1f332502c37793d3bfb74f6395c0d223c77.tar.bz2
Create macro to disable enable final argument into specific directory.
svn path=/trunk/KDE/kdelibs/; revision=598376
-rw-r--r--modules/KDE4Macros.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/KDE4Macros.cmake b/modules/KDE4Macros.cmake
index a09dcec6..0fb9eba4 100644
--- a/modules/KDE4Macros.cmake
+++ b/modules/KDE4Macros.cmake
@@ -729,3 +729,11 @@ MACRO(KDE4_REMOVE_OBSOLETE_CMAKE_FILES)
endforeach ( _current_FILE)
ENDMACRO(KDE4_REMOVE_OBSOLETE_CMAKE_FILES)
+
+MACRO(KDE4_NO_ENABLE_FINAL _project_name)
+ if(KDE4_ENABLE_FINAL)
+ set(KDE4_ENABLE_FINAL OFF)
+ MESSAGE(STATUS "You used enable-final argument but \"${_project_name}\" doesn't support it. Try to fix compile it and remobe KDE4_NO_ENABLE_FINAL macro. Thanks")
+ endif(KDE4_ENABLE_FINAL)
+ENDMACRO(KDE4_NO_ENABLE_FINAL _project_name)
+