[Kst]  branches/work/kst/portto4/kst
    Peter Kümmel 
    syntheticpp at gmx.net
       
    Mon Jan 17 12:44:49 CET 2011
    
    
  
SVN commit 1215042 by kuemmel:
each lib has its own pch:
105M  ./src/libkst/kstcore_pch.h.gch
111M  ./src/libkstmath/kstmath_pch.h.gch
116M  ./src/widgets/kstwidgets_pch.h.gch
121M  ./src/libkstapp/kstapp_pch.h.gch
 M  +4 -4      cmake/modules/KstMacros.cmake  
 A             src/libkst/kstcore_pch  
 A             src/libkstapp/kstapp_pch  
 A             src/libkstmath/kstmath_pch  
 A             src/widgets/kstwidgets_pch  
--- branches/work/kst/portto4/kst/cmake/modules/KstMacros.cmake #1215041:1215042
@@ -83,10 +83,10 @@
 	string(TOUPPER BUILD_${kst_name} _build_macro)
 	add_definitions(-D${_build_macro})
 	if(kst_pch)
-		# TODO each lib could use its own pch header
-		set(pch ${CMAKE_CURRENT_BINARY_DIR}/pch.h)
-		configure_file(${kst_dir}/pch.h ${pch})
-		kst_add_pch_rule(${pch} kst_${kst_name}_sources ${type})
+		set(pch ${kst_name}_pch)
+		configure_file(${kst_${kst_name}_folder}/${pch} ${CMAKE_CURRENT_BINARY_DIR}/${pch}.h COPYONLY)
+		#add_definitions(-DKST_PCH_RECURSIVE) # only some percents faster
+		kst_add_pch_rule(${CMAKE_CURRENT_BINARY_DIR}/${pch}.h kst_${kst_name}_sources ${type})
 	endif()
 	if(kst_merge_files)
 		if(kst_merge_rebuild)
    
    
More information about the Kst
mailing list