@@ -45,6 +45,11 @@ elseif(CMAKE_SYSTEM_NAME MATCHES "Darwin")
45
45
-DCMAKE_C_FLAGS=${CMAKE_C_FLAGS}
46
46
-DCMAKE_OSX_ARCHITECTURES=${ESCAPED_ARCHS}
47
47
)
48
+ # This allows to not sign compiled PCRE2 executables for iOS / macOS builds,
49
+ # we don't really use them anyway, but we need them build for the install
50
+ # command below to work.
51
+ set (EXTRA_INSTALL_ARGS "-- CODE_SIGNING_ALLOWED=NO" )
52
+
48
53
elseif (CMAKE_SYSTEM_NAME MATCHES "iOS" )
49
54
set (
50
55
EXTRA_BUILD_ARGS
@@ -54,6 +59,10 @@ elseif(CMAKE_SYSTEM_NAME MATCHES "iOS")
54
59
-DCMAKE_IOS_INSTALL_COMBINED=${CMAKE_IOS_INSTALL_COMBINED}
55
60
-GXcode
56
61
)
62
+ # This allows to not sign compiled PCRE2 executables for iOS / macOS builds,
63
+ # we don't really use them anyway, but we need them build for the install
64
+ # command below to work.
65
+ set (EXTRA_INSTALL_ARGS "-- CODE_SIGNING_ALLOWED=NO" )
57
66
endif ()
58
67
59
68
if (CMAKE_SYSTEM_NAME MATCHES "Android|Windows" )
@@ -73,12 +82,7 @@ execute_process(
73
82
74
83
execute_process (
75
84
COMMAND ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR} /pcre2
76
- --config Release
77
-
78
- # This allows to not sign compiled PCRE2 executables for iOS / macOS builds,
79
- # we don't really use them anyway, but we need them build for the install
80
- # command below to work.
81
- -- CODE_SIGNING_ALLOWED=NO
85
+ --config Release ${EXTRA_INSTALL_ARGS}
82
86
)
83
87
84
88
execute_process (COMMAND ${CMAKE_COMMAND} --install ${CMAKE_BINARY_DIR} /pcre2 )
0 commit comments