File: patch_apache.cmake

package info (click to toggle)
neko 2.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,412 kB
  • sloc: ansic: 19,583; ml: 4,924; sh: 54; makefile: 23
file content (26 lines) | stat: -rw-r--r-- 499 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# https://github.com/apache/httpd/commit/dd4561dd17a669a8c1757ada0ca875dfa840d0e7
# https://github.com/apache/httpd/pull/343

set(cmakelists ${apache_source}/CMakeLists.txt)

file(READ ${cmakelists} content)

string(REPLACE
	"pcre2-8d.lib"
	"pcre2-8-staticd.lib"
	content "${content}"
)

string(REPLACE
	"pcre2-8.lib"
	"pcre2-8-static.lib"
	content "${content}"
)

string(REPLACE
	"\"-DHAVE_PCRE2\""
	"\"-DHAVE_PCRE2 -DPCRE2_STATIC\""
	content "${content}"
)

file(WRITE ${cmakelists} "${content}")