[Kst] branches/work/kst/portto4/kst

Peter Kümmel syntheticpp at gmx.net
Tue Jan 18 11:17:26 CET 2011


SVN commit 1215327 by kuemmel:

when using pchs don't recompile all when svnrevision.h has changed

 M  +1 -0      cmake/CMakeLists.txt  
 M  +0 -2      cmake/config.h.cmake  
 M  +4 -0      src/libkst/debug.cpp  
 M  +5 -0      src/libkstapp/aboutdialog.cpp  


--- branches/work/kst/portto4/kst/cmake/CMakeLists.txt #1215326:1215327
@@ -11,6 +11,7 @@
 
 include(SubversionHeader)
 kst_revision_project_name(Revision)
+add_definitions(-DKST_HAVE_SVN_REVISION_H)
 SubversionHeader(${kst_dir} ${kst_revision_project} ${CMAKE_BINARY_DIR}/svnrevision.h _modified)
 
 set(kst_binary_name kst)
--- branches/work/kst/portto4/kst/cmake/config.h.cmake #1215326:1215327
@@ -6,8 +6,6 @@
 //#define QT_NO_STL
 //#define QT_NO_KEYWORDS
 
-#include "svnrevision.h"
-
 #define KSTVERSION  "${kst_version}"
 #define INSTALL_LIBDIR "${CMAKE_INSTALL_PREFIX}"
 
--- branches/work/kst/portto4/kst/src/libkst/debug.cpp #1215326:1215327
@@ -12,6 +12,10 @@
 
 #include "config.h"
 
+#ifdef KST_HAVE_SVN_REVISION_H
+#include "svnrevision.h"
+#endif
+
 #include "datasource.h"
 #include "debug.h"
 #include "logevents.h"
--- branches/work/kst/portto4/kst/src/libkstapp/aboutdialog.cpp #1215326:1215327
@@ -11,6 +11,11 @@
  ***************************************************************************/
 
 #include "config.h"
+
+#ifdef KST_HAVE_SVN_REVISION_H
+#include "svnrevision.h"
+#endif
+
 #include "aboutdialog.h"
 
 #include <QDesktopServices>


More information about the Kst mailing list