File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -277,19 +277,16 @@ function(_php_main_create_files)
277277    set (file config.w32.h)
278278  else ()
279279    message (STATUS  "Creating main/build-defs.h" )
280-     configure_file (
281-       main/build -defs.h.in
282-       main/CMakeFiles/build -defs.h.in
283-       @ONLY
284-     )
280+     file (READ main/build -defs.h.in content )
281+     string (CONFIGURE "${content} "  content  @ONLY)
285282
286283    # To be able to evaluate the generator expressions. 
287284    file (
288285      GENERATE
289286      # TODO: Multi-config generators need to write separate files. 
290287      #OUTPUT $<CONFIG>/main/build-defs.h 
291288      OUTPUT  ${PHP_BINARY_DIR} /main/build -defs.h
292-       INPUT   ${PHP_BINARY_DIR} /main/CMakeFiles/ build -defs.h.in 
289+       CONTENT   " ${content} " 
293290    )
294291
295292    set (HAVE_BUILD_DEFS_H 1)
@@ -298,18 +295,15 @@ function(_php_main_create_files)
298295  endif ()
299296
300297  message (STATUS  "Creating main/${file} " )
301-   configure_file (
302-     main/php_config.cmake.h.in
303-     main/CMakeFiles/${file} .cmake.in
304-     @ONLY
305-   )
298+   file (READ main/php_config.cmake.h.in content )
299+   string (CONFIGURE "${content} "  content  @ONLY)
306300
307301  file (
308302    GENERATE
309303    # TODO: Multi-config generators need to write separate files. 
310304    #OUTPUT $<CONFIG>/main/${file} 
311305    OUTPUT  ${PHP_BINARY_DIR} /main/${file} 
312-     INPUT   ${PHP_BINARY_DIR} /main/CMakeFiles/ ${file} .cmake.in 
306+     CONTENT   " ${content} " 
313307  )
314308endfunction ()
315309
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments