View | Details | Raw Unified | Return to bug 156901 | Differences between
and this patch

Collapse All | Expand All

(-)textproc/sigil/files/patch-CustomPCH.cmake (+13 lines)
Line 0 Link Here
1
--- CustomPCH.cmake.orig	2011-09-10 10:00:03.000000000 +0200
2
+++ CustomPCH.cmake	2011-09-10 10:01:50.000000000 +0200
3
@@ -53,8 +53,9 @@
4
         separate_arguments( compile_flags )
5
         
6
         # Finally, build the precompiled header
7
+	string( REGEX REPLACE "[	 ]+" ";" _CMAKE_CXX_COMPILER_ARG1 "${CMAKE_CXX_COMPILER_ARG1}" )
8
         add_custom_target(  ${target_name} ALL 
9
-                            COMMAND ${CMAKE_CXX_COMPILER} ${compile_flags} ${CMAKE_CURRENT_SOURCE_DIR}/stdafx.h -o stdafx.h.gch
10
+                            COMMAND ${CMAKE_CXX_COMPILER} ${_CMAKE_CXX_COMPILER_ARG1} ${compile_flags} ${CMAKE_CURRENT_SOURCE_DIR}/stdafx.h -o stdafx.h.gch
11
                             WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
12
                             VERBATIM )
13
     endif() 

Return to bug 156901