File: fix-parallel-build.patch

package info (click to toggle)
libkolabxml 1.2.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,596 kB
  • sloc: cpp: 9,911; ansic: 596; xml: 430; python: 221; php: 194; sh: 94; makefile: 12; cs: 9
file content (19 lines) | stat: -rw-r--r-- 1,013 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Author: Diane Trout <diane@ghic.org>
Description: When running multiple make processes the 
 generate_php_bindings didn't have dependency information about 
 what was generating php_kolabformat.h.

 This explicitly addes php_kolabformat.h to the list of files generated 
 by the swig command.

--- a/src/php/CMakeLists.txt
+++ b/src/php/CMakeLists.txt
@@ -3,7 +3,7 @@
 
 set(KOLAB_SWIG_PHP_SOURCE_FILE php_kolabformat_wrapper.cpp)
 set(KOLAB_SWIG_PHP_HEADER_FILE php_kolabformat.h)
-add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${KOLAB_SWIG_PHP_SOURCE_FILE} ${CMAKE_CURRENT_BINARY_DIR}/kolabformat.php
+add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${KOLAB_SWIG_PHP_SOURCE_FILE} ${CMAKE_CURRENT_BINARY_DIR}/${KOLAB_SWIG_PHP_HEADER_FILE} ${CMAKE_CURRENT_BINARY_DIR}/kolabformat.php
         COMMAND ${SWIG} -v -c++ -php -o ${CMAKE_CURRENT_BINARY_DIR}/${KOLAB_SWIG_PHP_SOURCE_FILE}  ../kolabformat.i
         COMMENT "Generating php bindings"
         WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}