[Kst] branches/work/kst/portto4/kst/cmake/modules
Peter Kümmel
syntheticpp at gmx.net
Wed Jan 19 17:11:22 CET 2011
SVN commit 1215771 by kuemmel:
the studio problem with pchs was not solved
M +5 -1 KstPchSupport.cmake
--- branches/work/kst/portto4/kst/cmake/modules/KstPchSupport.cmake #1215770:1215771
@@ -69,7 +69,11 @@
file(WRITE ${_header}.tmp "#include \"${_header}\"\n")
execute_process(COMMAND ${CMAKE_COMMAND} -E copy_if_different ${_header}.tmp ${_header}.cpp)
- set(use_pch /Fp${_header}.${CMAKE_BUILD_TYPE}.pch)
+ if(MSVC_IDE)
+ set(use_pch "/Fp${_header}.\$(Configuration).pch")
+ else()
+ set(use_pch /Fp${_header}.pch)
+ endif()
set_source_files_properties(${_header}.cpp PROPERTIES COMPILE_FLAGS "/Yc\"${_header}\" ${use_pch}")
# Bug in cmake: next line also compile .c files with pchs
More information about the Kst
mailing list