Line 0
Link Here
|
|
|
1 |
--- cmake/modules/KstPchSupport.cmake.orig 2011-09-09 12:26:11.000000000 +0200 |
2 |
+++ cmake/modules/KstPchSupport.cmake 2011-09-09 12:27:45.000000000 +0200 |
3 |
@@ -56,9 +56,10 @@ |
4 |
separate_arguments(_args) |
5 |
|
6 |
# now build the pch with the compiler arguments |
7 |
+ string(REGEX REPLACE "[ ]+" ";" _CMAKE_CXX_COMPILER_ARG1 "${CMAKE_CXX_COMPILER_ARG1}") |
8 |
add_custom_command(OUTPUT ${_gch_filename} |
9 |
COMMAND ${CMAKE_COMMAND} -E remove ${_gch_filename} |
10 |
- COMMAND ${CMAKE_CXX_COMPILER} ${CMAKE_CXX_COMPILER_ARG1} ${_args} |
11 |
+ COMMAND ${CMAKE_CXX_COMPILER} ${_CMAKE_CXX_COMPILER_ARG1} ${_args} |
12 |
DEPENDS ${_header}) |
13 |
|
14 |
# all other files should use the pch |